public void InAir(IPlayerPart sender) { if (Dead) { return; } switch (sender.GetPartType()) { case PlayerPart.Feet: state = State.jumping; break; } }
public void OnGround(IPlayerPart sender) { if (Dead) { return; } switch (sender.GetPartType()) { case PlayerPart.Feet: _jumpFuelTime = JumpFuelTime; state = State.grounded; break; } }