void Awake() { // Set up a reference to the capsule collider. capsule = collider as CapsuleCollider; grounded = true; }