// private Color clicked = new Color (255f, 255f, 255f); void Awake() { GetComponent <Image> ().color = new Color(0.5f, 0.5f, 0.5f); mssc = GameObject.Find("Stage_select_controller").GetComponent <Main_Select_Stage_Controller> (); xxx = false; }
//private bool once = false; // private Color clicked = new Color (255f, 255f, 255f); void Awake() { GetComponent <Image> ().color = new Color(0.5f, 0.5f, 0.5f); mssc = GameObject.Find("Stage_select_controller").GetComponent <Main_Select_Stage_Controller> (); xxx = false; aa = GameObject.FindWithTag("Dialogue").GetComponent <Text_Importer> (); if (_what_stage_now_cleared == 5) { SceneManager.LoadScene(43); _stage2_con_di[1].SetActive(true); DontDestroyOnLoad(_stage2_con_di[1]); } else if (_what_stage_now_cleared == 0 && this_num == 0) { SceneManager.LoadScene(4); //_stage2_con_di [0].SetActive (true); _stage2_con_di [1].SetActive(true); //DontDestroyOnLoad (_stage2_con_di [0]); DontDestroyOnLoad(_stage2_con_di [1]); //aa.Import (4); } }