void FixedUpdate() { if (stateMachine.Grounded()) { attack.GroundedAttack(controller.Attack(), lockedShooting, controller.MoveHorizontal(), controller.MoveVertical()); } else if (stateMachine.Airborne()) { if (stateMachine.WallLeft()) { attack.WallAttackLeft(controller.Attack(), lockedShooting); } else if (stateMachine.WallRight()) { attack.WallAttackRight(controller.Attack(), lockedShooting); } else { attack.AirborneAttack(controller.Attack(), lockedShooting, controller.MoveHorizontal(), controller.MoveVertical()); } } }
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()); } } }