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

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

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