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

37 lines
807 B
C#
Raw Normal View History

2024-10-28 22:05:14 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using System;
2024-10-30 01:08:16 +08:00
using DG.Tweening;
2024-10-28 22:05:14 +08:00
public class JinshaBtn : MonoBehaviour
{
public static Action OnSceneMouseBTN;
// Start is called before the first frame update
void Start()
{
OnSceneMouseBTN += JUmpScem;
}
private void OnMouseDown()
{
//SceneManager.LoadScene(JumpScene.cultivation_Jinsha_mine_slices);
2024-10-30 01:08:16 +08:00
transform.DOScale(new Vector3(0.5f,0.5f,0.5f),0.3f).SetEase(Ease.OutBack);
StartCoroutine("Magnify");
2024-10-28 22:05:14 +08:00
}
2024-10-30 01:08:16 +08:00
IEnumerator Magnify()
{
transform.DOScale(Vector3.one, 0.5f).SetEase(Ease.OutBack);
OnSceneMouseBTN();
return null;
}
2024-10-28 22:05:14 +08:00
void JUmpScem()
{
2024-11-20 15:27:02 +08:00
//Debug.Log("====");
2024-10-28 22:05:14 +08:00
}
}