mycj_demo/mycj/Assets/Script/Monster_tip.cs
2024-12-02 23:38:32 +08:00

38 lines
664 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Monster_tip : MonoBehaviour
{
public GameObject tip;
public Button tipBtn;
public int downNumber=0;
// Start is called before the first frame update
void Start()
{
tipBtn.onClick.AddListener(tipClick);
}
void tipClick()
{
downNumber++;
if (downNumber == 1)
{
tip.gameObject.SetActive(true);
}
else
{
//这里写直接跳过等待时间,开始游戏
}
}
// Update is called once per frame
void Update()
{
}
}