void Start() { my_Menu = GameObject.Find("main").GetComponent <my_menu2>(); Debug.Log(my_Menu); rec_keep = GameObject.Find("CheckBoard").GetComponent <record_keeper>(); make_true_answer(); score_board = GameObject.Find("score_board"); ooa_sc = score_board.transform.GetChild(6).gameObject.GetComponent <OtherObjectAction>(); score_board.SetActive(false); Transform target_text = score_board.transform.Find("_num"); result1 = target_text.GetComponent <UILabel>(); Debug.Log(result1); Transform target_text2 = score_board.transform.Find("_rate"); result2 = target_text2.GetComponent <UILabel>(); Debug.Log(result2); Transform target_text3 = score_board.transform.Find("result"); result3 = target_text3.GetComponent <UILabel>(); Debug.Log(result3); rec_keep = GameObject.Find("CheckBoard").GetComponent <record_keeper>(); make_true_answer(); }
void use_ooa(OtherObjectAction par1, OtherObjectAction par2, OtherObjectAction par3) { if (par1.param[0] > 0) { Debug.Log("ありが押された"); ans_par = true; par1.param[0] = 0; ans_push = true; no_ans = false; } if (par2.param[0] > 0) { ans_par = false; Debug.Log("なしが押された"); par2.param[0] = 0; ans_push = true; } if (par3.param[0] > 0) { Debug.Log("閉じるが押された"); par3.param[0] = 0; now_activ.SetActive(false); my_rs3Menu.SetActive(false); click_close = true; } }
void Start() { my_main = GameObject.Find("main").GetComponent <main>(); Debug.Log(my_main); futa_func = GameObject.Find("AppearanceCheck"); Debug.Log(futa_func); ooa_1 = futa_func.transform.Find("ChexkPointFrame/Result0/Yes").GetComponent <OtherObjectAction>(); my_score = GameObject.Find("my_score"); ooa = my_score.transform.GetChild(1).gameObject.GetComponent <OtherObjectAction>(); ooa2 = my_score.transform.GetChild(2).gameObject.GetComponent <OtherObjectAction>(); my_score.SetActive(false); my_answers = GameObject.Find("answers"); ooa3 = my_answers.transform.GetChild(1).gameObject.GetComponent <OtherObjectAction>(); ooa4 = my_answers.transform.GetChild(2).gameObject.GetComponent <OtherObjectAction>(); ooa5 = my_answers.transform.GetChild(3).gameObject.GetComponent <OtherObjectAction>(); my_answers.SetActive(false); futa_menu = futa_func.transform.GetChild(1).gameObject; futa_check1 = futa_func.transform.GetChild(1).gameObject; futa_check2 = futa_func.transform.GetChild(2).gameObject; ooa_1 = futa_menu.transform.GetChild(1).gameObject.GetComponent <OtherObjectAction>(); ooa_2 = futa_menu.transform.GetChild(2).gameObject.GetComponent <OtherObjectAction>(); ooa_3 = futa_menu.transform.GetChild(3).gameObject.GetComponent <OtherObjectAction>(); ooa_4 = futa_menu.transform.GetChild(4).gameObject.GetComponent <OtherObjectAction>(); my_answers.SetActive(false); }
void Start() { my_main = GameObject.Find("main").GetComponent <main>(); my_score = GameObject.Find("my_score"); ooa = my_score.transform.GetChild(1).gameObject.GetComponent <OtherObjectAction>(); ooa2 = my_score.transform.GetChild(2).gameObject.GetComponent <OtherObjectAction>(); my_score.SetActive(false); my_rs3Menu = GameObject.Find("my_rs3Menu"); futa_func = my_rs3Menu.transform.Find("futa").gameObject; ooa_1 = futa_func.transform.Find("CheckPointFrame/answerZone/Yes").GetComponent <OtherObjectAction>(); ooa_2 = futa_func.transform.Find("CheckPointFrame/answerZone/No").GetComponent <OtherObjectAction>(); ooa_3 = futa_func.transform.Find("Close").GetComponent <OtherObjectAction>(); futa_func.SetActive(false); switch_func = my_rs3Menu.transform.Find("switch").gameObject; ooa_4 = switch_func.transform.Find("CheckPointFrame/answerZone/Yes").GetComponent <OtherObjectAction>(); ooa_5 = switch_func.transform.Find("CheckPointFrame/answerZone/No").GetComponent <OtherObjectAction>(); ooa_6 = switch_func.transform.Find("Close").GetComponent <OtherObjectAction>(); switch_func.SetActive(false); handle_func = my_rs3Menu.transform.Find("handle").gameObject; ooa_7 = handle_func.transform.Find("CheckPointFrame/answerZone/Yes").GetComponent <OtherObjectAction>(); ooa_8 = handle_func.transform.Find("CheckPointFrame/answerZone/No").GetComponent <OtherObjectAction>(); ooa_9 = handle_func.transform.Find("Close").GetComponent <OtherObjectAction>(); handle_func.SetActive(false); coverGaishi_func = my_rs3Menu.transform.Find("coverGaishi").gameObject; ooa_10 = coverGaishi_func.transform.Find("CheckPointFrame/answerZone/Yes").GetComponent <OtherObjectAction>(); ooa_11 = coverGaishi_func.transform.Find("CheckPointFrame/answerZone/No").GetComponent <OtherObjectAction>(); ooa_12 = coverGaishi_func.transform.Find("Close").GetComponent <OtherObjectAction>(); coverGaishi_func.SetActive(false); Gaishi_func = my_rs3Menu.transform.Find("Gaishi").gameObject; ooa_13 = Gaishi_func.transform.Find("CheckPointFrame/answerZone/Yes").GetComponent <OtherObjectAction>(); ooa_14 = Gaishi_func.transform.Find("CheckPointFrame/answerZone/No").GetComponent <OtherObjectAction>(); ooa_15 = Gaishi_func.transform.Find("Close").GetComponent <OtherObjectAction>(); Gaishi_func.SetActive(false); sokoFuta_func = my_rs3Menu.transform.Find("sokofuta").gameObject; ooa_16 = sokoFuta_func.transform.Find("CheckPointFrame/answerZone/Yes").GetComponent <OtherObjectAction>(); ooa_17 = sokoFuta_func.transform.Find("CheckPointFrame/answerZone/No").GetComponent <OtherObjectAction>(); ooa_18 = sokoFuta_func.transform.Find("Close").GetComponent <OtherObjectAction>(); sokoFuta_func.SetActive(false); bolt_func = my_rs3Menu.transform.Find("bolt").gameObject; ooa_19 = bolt_func.transform.Find("CheckPointFrame/answerZone/Yes").GetComponent <OtherObjectAction>(); ooa_20 = bolt_func.transform.Find("CheckPointFrame/answerZone/No").GetComponent <OtherObjectAction>(); ooa_21 = bolt_func.transform.Find("Close").GetComponent <OtherObjectAction>(); bolt_func.SetActive(false); tanshi_func = my_rs3Menu.transform.Find("tanshi").gameObject; ooa_22 = tanshi_func.transform.Find("CheckPointFrame/answerZone/Yes").GetComponent <OtherObjectAction>(); ooa_23 = tanshi_func.transform.Find("CheckPointFrame/answerZone/No").GetComponent <OtherObjectAction>(); ooa_24 = tanshi_func.transform.Find("Close").GetComponent <OtherObjectAction>(); tanshi_func.SetActive(false); now_activ = futa_func; now_activ.SetActive(false); my_rs3Menu.SetActive(false); }