Exemple #1
0
        private void Awake()
        {
            if (Instance != null)
            {
                Destroy(gameObject);
                return;
            }

            Instance = this;
            //TODO load from files
        }
Exemple #2
0
 void OnDestroy()
 {
     Instance = null;
 }