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
|
|||
|
{
|
|||
|
//<2F><><EFBFBD><EFBFBD>дֱ<D0B4><D6B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȴ<EFBFBD>ʱ<EFBFBD><CAB1>,<2C><>ʼ<EFBFBD><CABC>Ϸ
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|