コード例 #1
0
ファイル: BirdController.cs プロジェクト: vegardkt/FlappyAI
 void Start()
 {
     BirdBody        = GetComponent <Rigidbody2D>();
     managerScript   = GameObject.Find("ManagerObject").GetComponent <Manager>();
     SpawnController = GameObject.Find("PipeSpawner").GetComponent <PipeSpawnerController>();
     timeInit        = Time.time;
 }
コード例 #2
0
 private void Start()
 {
     SpawnController = GameObject.Find("PipeSpawner").GetComponent <PipeSpawnerController>();
 }