// Use this for initialization void Start() { mole_raiser = GetComponent <WAM_Mole_Raiser>(); mole_value_controller = GetComponent <Num_Value_Controller>(); mole_sprite_switcher = GetComponent <WAM_Mole_Sprite_Switcher>(); hit_image = WAM_Hit_Image.hit_image; if (WAM_Answer_Controller.answer_controller != null) { answer_controller = WAM_Answer_Controller.answer_controller; } }
// 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"); } }