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();
    }
Beispiel #2
0
    void Start()
    {
        my_Menu = GameObject.Find("main").GetComponent <my_menu2>();

        check_point = GameObject.Find("CheckBoard/Bord01/CheckPoints");

        foreach (Transform tra in check_point.transform)
        {
            foreach (Transform tra2 in tra)
            {
                if (tra2.name == "CheckPointLabel")
                {
                    all_check_points.Add(tra2.transform.Find("Label").gameObject);
                }
            }
        }

        foreach (Transform tra3 in check_point.transform)
        {
            foreach (Transform tra4 in tra3)
            {
                if (tra4.name == "ConditionLabel")
                {
                    all_check_status.Add(tra4.transform.Find("Label").gameObject);
                }
            }
        }
    }