void OnDestroy() { if (view != null) { Destroy(view.gameObject); view = null; } }
public override void Destroy() { if (view != null && view.gameObject != null) { Destroy(view.gameObject); } view = null; }
// UIWindowCtrl Setup public override void OnShow() { if (view == null) { view = windowManager.GetWindowView <UIMenuView>("UIMenu"); view.nextMenu.onClick.Add(new EventDelegate(OnNextWindow)); view.popWindow.onClick.Add(new EventDelegate(OnPopWindow)); } }
private void Awake() { Instance = this; m_IsShow = true; }