Exemple #1
0
        private void OnDestroy()
        {
            Debug.Assert(Instance != null);

            Instance = null;
        }
Exemple #2
0
        void Awake()
        {
            Debug.Assert(Instance == null);

            Instance = this;
        }