예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject new_tri = new GameObject();

        trapezoid   = GameObject.FindWithTag("Trapezoid");
        subtraction = trapezoid.GetComponent <TrapezoidText>();
    }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        //スコアにタイムを渡す
        time = GameObject.Find("TimeContollor");
        //台形を探す
        trapezoid = GameObject.FindWithTag("Trapezoid");
        set_text  = trapezoid.GetComponent <TrapezoidText>();

        //TakeOverTextのインスタンス化
        star = new TakeOrverText[5];

        for (int i = 0; i < 5; i++)
        {
            //Listにアタッチされているものを入れる
            //childe_triangle[i] = triangle[i];
            star[i] = triangle[i].GetComponent <TakeOrverText>();
        }
    }