_xiaofang/xiaofang/Assets/Script/UI/ZZZZZZ/Choose1.cs
2024-12-18 23:13:30 +08:00

30 lines
590 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class Choose1 : MonoBehaviour
{
public bool isNoTip;
public bool isShow;
public GameObject Tip;
public void Start()
{
Transform childTransform = transform.Find("Choose_Bg/Choos_Tip");
Tip = childTransform.gameObject;
}
private void Update()
{
if (isShow&&isNoTip)
{
Tip.SetActive(true);
}
else
{
Tip.SetActive(false);
}
}
}