示例#1
0
        private void OnDestroy()
        {
            if (_instance == this)
            {
                _instance = null;
            }

            _activeSimplePanels.Clear();
        }
示例#2
0
        private void Awake()
        {
            if (_instance != null && _instance != this)
            {
                Destroy(gameObject);
                return;
            }

            _instance = this;
        }