Exemplo n.º 1
0
 void Awake()
 {
     anim = GetComponent <Animator> ();
     playerRigidbody = GetComponent <Rigidbody> ();
     playerCollider = GetComponent <CapsuleCollider> ();
     groundedDetector = GetComponentInChildren<GroundTagScript>();
     faceplantDetector = GetComponentInChildren<FacePlantDetector>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     playerAudio = GetComponent<AudioSource> ();
     groundTagger = GetComponentInChildren<GroundTagScript> ();
 }