コード例 #1
0
 // Use this for initialization
 void Start()
 {
     if (ui_score_controller == null)
     {
         ui_score_controller = this;
     }
     if (background_image != null)
     {
         background_image.fillAmount = 0;
     }
 }
コード例 #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");
        }
    }