Cute_demon_attacks/meng_yao/Assets/script/JumpScene/jinTols.cs
2024-11-09 00:00:46 +08:00

32 lines
757 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class jinTols : MonoBehaviour
{
public string scene;
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);
if (string.IsNullOrEmpty(scene))
{
Promptmgr.Instance.PromptBubble("¹¦ÄÜ먦·Å");
}
else
{
Virtual_CameraManager.Instance.SwitchToCamera(0);
}
return null;
}
}