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