//隐藏窗体 public virtual void Hide() { this.gameObject.SetActive(false); //只有模态窗体类型能进行遮罩操作 if (UiType.m_UIFormType == UIFormType.PopUp) { UIMeskMgr.GetInstance().CancelMesk(); } }
//重新显示 public virtual void RedisPlay() { this.gameObject.SetActive(true); //只有模态窗体类型能进行遮罩操作 if (UiType.m_UIFormType == UIFormType.PopUp) { UIMeskMgr.GetInstance().ShowMesk(gameObject, UiType.m_UIFormLucency); } }
public static UIMeskMgr GetInstance() { if (_instance == null) { _instance = new GameObject("_UIMeskMgr").AddComponent <UIMeskMgr>(); } return(_instance); }