コード例 #1
0
ファイル: Level.Logic.cs プロジェクト: Randhall/RunAndJump
 private void CheckForPlayer()
 {
     player = GameObject.FindObjectOfType<PlayerController> ();
     if (player == null) {
         Debug.LogError ("Error: There must to be one CharacterController in the level!");
     }
 }