示例#1
0
        public FrmBase()
        {
#if UNITY_EDITOR
            Name = "FrmBase";
#endif

            UIRootManager.AddForm(this);
            Hide();
        }
示例#2
0
        public void Close()
        {
            if (OnClosing())
            {
                this.DisposeAllChilds();
                if (this.gameObject != null)
                {
                    GameObject.Destroy(this.gameObject);
                }
                IsShowing = false;

                ReleaseTasksAndTweens();

                UIRootManager.RemoveForm(this);
                OnClosed();
            }
        }