// Use this for initialization
 void Start()
 {
     if (wam_game_state == null)
     {
         wam_game_state = this;
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     if (game_controller == null)
     {
         game_controller = this;
     }
     //get moles
     mole_controllers = GameObject.FindObjectsOfType <WAM_Mole_Controller>();
     if (WAM_Game_State_Controller.wam_game_state != null && WAM_Difficulty_Controller.difficulty_controller != null && mole_controllers.Length > 0)
     {
         difficulty_controller = WAM_Difficulty_Controller.difficulty_controller;
         game_state            = WAM_Game_State_Controller.wam_game_state;
         StartCoroutine(Activate_Moles()); //start moles rising and falling
     }
     else
     {
         Debug.Log("WAM: Game state not found or no mole controllers found.");
     }
 }