Cute_demon_attacks/meng_yao/Assets/script/JumpScene/jinTols.cs

30 lines
742 B
C#
Raw Normal View History

2024-11-05 14:29:51 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
2024-11-14 16:05:27 +08:00
using UnityEngine.SceneManagement;
2024-11-05 14:29:51 +08:00
public class jinTols : MonoBehaviour
{
2024-11-12 17:35:15 +08:00
public GameObject gotoscene;
public GameObject nowScene;
2024-11-05 17:31:45 +08:00
public void OnMouseDown()
2024-11-05 14:29:51 +08:00
{
//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);
2024-11-12 17:35:15 +08:00
2024-11-14 16:05:27 +08:00
//gotoscene.SetActive(true);
//nowScene.SetActive(false);
SceneManager.LoadScene(JumpScene.scene_Main);
2024-11-05 14:29:51 +08:00
return null;
}
}