单向平台
This commit is contained in:
@@ -26,6 +26,13 @@ namespace BaseGames.Player.States
|
||||
_owner.TransitionTo(_owner.GetState<FallState>());
|
||||
return;
|
||||
}
|
||||
// 单向平台穿落:↓ + 跳跃键,优先于普通跳跃,避免误消耗跳跃缓冲
|
||||
if (Move.OnOneWayPlatform && Input.MoveInput.y < -0.5f && Buffer.ConsumeJump())
|
||||
{
|
||||
Move.DropThroughPlatform();
|
||||
_owner.TransitionTo(_owner.GetState<FallState>());
|
||||
return;
|
||||
}
|
||||
if (Buffer.ConsumeJump())
|
||||
{
|
||||
_owner.TransitionTo(_owner.GetState<JumpState>());
|
||||
|
||||
Reference in New Issue
Block a user