void FixedUpdate() { if (stateMachine.Grounded()) { dash.ResetDash(); } else if (stateMachine.Airborne()) { dash.Dash(controller.MoveHorizontal(), controller.MoveVertical(), controller.Dash()); if (stateMachine.WallLeft()) { dash.ResetDash(); } if (stateMachine.WallRight()) { dash.ResetDash(); } } }
void FixedUpdate() { jump.SetContinousJump(controller.Jump(), controller.EndJump()); timeControll.SlowReverse(controller.SlowReverse()); timeControll.FlashReverse(controller.FlashReverse()); if (stateMachine.Grounded()) { attack.GroundedAttack(controller.Attack(), lockedShooting, controller.MoveHorizontal(), controller.MoveVertical()); dash.ResetDash(); jump.Grounded(controller.Jump(), controller.Sprint()); move.Grounded(controller.MoveHorizontal(), controller.Sprint()); } else if (stateMachine.Airborne()) { if (stateMachine.WallLeft()) { attack.WallAttackLeft(controller.Attack(), lockedShooting); dash.ResetDash(); jump.LeftWall(controller.Jump()); move.Wallride(controller.MoveHorizontal(), controller.Sprint()); } else if (stateMachine.WallRight()) { attack.WallAttackRight(controller.Attack(), lockedShooting); dash.ResetDash(); jump.RightWall(controller.Jump()); move.Wallride(controller.MoveHorizontal(), controller.Sprint()); } else { attack.AirborneAttack(controller.Attack(), lockedShooting, controller.MoveHorizontal(), controller.MoveVertical()); dash.Dash(controller.MoveHorizontal(), controller.MoveVertical(), controller.Dash()); jump.Airborne(controller.Jump()); move.Airborne(controller.MoveHorizontal(), controller.Sprint()); } } }