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