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

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

            Instance = this;
        }