Beispiel #1
0
        protected override void OnDestroy()
        {
            if (PopupRoot.Instance == this)
            {
                PopupRoot.Instance = null;
            }

            base.OnDestroy();
        }
Beispiel #2
0
        protected override void Awake()
        {
            base.Awake();

            PopupRoot.Instance = this;
        }