Example #1
0
 // Use this for initialization
 void Start()
 {
     if (difficulty_controller == null)
     {
         difficulty_controller = this;
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        if (answer_controller == null)
        {
            answer_controller = this;
        }

        if (WAM_Difficulty_Controller.difficulty_controller != null)
        {
            difficulty_controller = WAM_Difficulty_Controller.difficulty_controller;
            Generate_Answer();
        }
        else
        {
            Debug.Log("WAM: Difficulty controller not found.");
        }

        if (WAM_UI_Answer.ui_answer)
        {
            ui_answer = WAM_UI_Answer.ui_answer;
        }
        else
        {
            Debug.Log("WAM: UI answer not found.");
        }

        if (WAM_UI_Score_Controller.ui_score_controller != null)
        {
            ui_score_controller = WAM_UI_Score_Controller.ui_score_controller;
        }
        else
        {
            Debug.Log("WAM: UI Score controller not found");
        }

        if (WAM_Bulb_Row_Controller.bulb_row_controller != null)
        {
            bulb_row_controller = WAM_Bulb_Row_Controller.bulb_row_controller;
        }
        else
        {
            Debug.Log("WAM: Bulb row controller not found");
        }
    }
Example #3
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.");
     }
 }