// Start is called before the first frame update void Start() { GameObject new_tri = new GameObject(); trapezoid = GameObject.FindWithTag("Trapezoid"); subtraction = trapezoid.GetComponent <TrapezoidText>(); }
// 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>(); } }