Esempio n. 1
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
     gameText.text = gameText.text = kind_ofgame[index_of_game];
 }
Esempio n. 2
0
 private void Awake()
 {
     instance = this;
     DontDestroyOnLoad(gameObject);
 }