Exemple #1
0
 private void CheckForPlayer()
 {
     player = GameObject.FindObjectOfType<PlayerController> ();
     if (player == null) {
         Debug.LogError ("Error: There must to be one CharacterController in the level!");
     }
 }