天津23维预案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
577 B

using UnityEngine;
using System.Collections;
using AX.TrackRecord;
public class Mask : MonoBehaviour
{
[HideInInspector]
public GameObject obj_Mask;
void Awake()
{
obj_Mask = transform.Find("Mask").gameObject;
}
void OnEnable()
{
StartCoroutine(delay());
}
IEnumerator delay()
{
yield return new WaitForEndOfFrame();
if (TrackRecordHelpClass.CheckIfCanClickUI())
{
obj_Mask.SetActive(false);
}
else
{
obj_Mask.SetActive(true);
}
}
}