Cute_demon_attacks/meng_yao/Assets/script/JumpScene/jinTols.cs
2025-01-07 11:48:49 +08:00

37 lines
895 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
using UnityEngine.SceneManagement;
using System.Threading.Tasks;
public class jinTols : MonoBehaviour
{
public GameObject gotoscene;
public GameObject nowScene;
private async void OnEnable()
{
await Task.Delay(500);
}
public void OnMouseDown()
{
//SceneManager.LoadScene(JumpScene.cultivation_Jinsha_mine_slices);
//transform.DOScale(new Vector3(0.5f, 0.5f, 0.5f), 0.3f).SetEase(Ease.OutBack);
StartCoroutine("Magnify");
}
IEnumerator Magnify()
{
// transform.DOScale(Vector3.one, 0.5f).SetEase(Ease.OutBack);
gotoscene.SetActive(true);
nowScene.SetActive(false);
//PlayerPrefs.SetInt("SceneStatus",1);
//SceneManager.LoadScene(JumpScene.scene_Main);
return null;
}
}