public FrmBase() { #if UNITY_EDITOR Name = "FrmBase"; #endif UIRootManager.AddForm(this); Hide(); }
public void Close() { if (OnClosing()) { this.DisposeAllChilds(); if (this.gameObject != null) { GameObject.Destroy(this.gameObject); } IsShowing = false; ReleaseTasksAndTweens(); UIRootManager.RemoveForm(this); OnClosed(); } }