Example #1
0
 void Awake()
 {
     if (!GAME_CONTROLLER)
     {
         player1Score    = 0;
         player2Score    = 0;
         GAME_CONTROLLER = this;
         DontDestroyOnLoad(gameObject);
     }
     else if (GAME_CONTROLLER != this)
     {
         Destroy(gameObject);
         GAME_CONTROLLER.Start();
     }
 }