Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     // 前回の値を取得
     raceNumber = GameManager.Instance.RaceNumber;
     // 自分のgameObjectからコンポーネントを取得
     inputManager = GetComponent<InputManager>();
     agreeCheck = GetComponent<AgreeCheck>();
     // 参照の取得
     playCountObject = GameObject.Find("Canvas/PlayCount");
     // Textからコンポーネントを取得
     Animator = playCountObject.transform.Find("PlayCountFrame/CountText").gameObject.GetComponent<Animator>();
     // テキストを非表示にする
     PlayCountHide();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="agreeCheck"></param>
 private void Start()
 {
     agreeCheck = GetComponent <AgreeCheck>();
 }