mycj_demo/mycj/Assets/Script/Monster_tip.cs

37 lines
663 B
C#
Raw Normal View History

2024-12-02 14:09:47 +08:00
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()
{
}
}