30 lines
590 B
C#
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);
|
|
}
|
|
}
|
|
|
|
}
|