using System.Collections; using System.Collections.Generic; using UnityEngine; public class MaskContro : MonoBehaviour { public GameObject Mask; public static MaskContro instance; // Start is called before the first frame update void Start() { instance = this; SetMask(false); } public void SetMask(bool flag) { if (flag) { Mask.SetActive(true); } else { Mask.SetActive(false); } } }