public override void OnEnter()
        {
            player = fsm.owner as PlayerFSM;

            gravityScale = player.rigidbody.gravityScale;
            player.rigidbody.gravityScale = 0;
        }
        public override void OnEnter()
        {
            player = fsm.owner as PlayerFSM;
            player.animator.SetTrigger("Flopping");

            player.boxCollider.enabled = false;
            player.polyCollider.enabled = true;
        }
 public override void OnEnter()
 {
     player = fsm.owner as PlayerFSM;
     player.animator.SetBool("Soaring", true);
 }
 public override void OnEnter()
 {
     player = fsm.owner as PlayerFSM;
 }