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

37 lines
762 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using DG.Tweening;
public class GameSceneBtn : MonoBehaviour
{
public static Action OnSceneMouseBTN;
// Start is called before the first frame update
void Start()
{
OnSceneMouseBTN += JUmpScem;
}
private void OnMouseDown()
{
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);
OnSceneMouseBTN();
return null;
}
void JUmpScem()
{
Debug.Log("====");
Promptmgr.Instance.PromptBubble("<22><>δ<EFBFBD><CEB4><EFBFBD><EFBFBD>");
}
}