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.
30 lines
577 B
30 lines
577 B
3 years ago
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|