37 lines
663 B
C#
37 lines
663 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()
|
|
{
|
|
|
|
}
|
|
}
|