Example #1
0
        private void OnDestroy()
        {
            BasePanel basePanel = this.GetComponentInParent <BasePanel>();

            basePanel?.UnRegisterUIControl(this.gameObject.name);
        }
Example #2
0
        private void Awake()
        {
            BasePanel basePanel = this.GetComponentInParent <BasePanel>();

            basePanel.RegisterUIControl(this.gameObject.name, this);
        }