public void Jump() { if (CurrentContact == Contact.None) { return; } CurrentContact = Contact.None; _velocity += Up * _parameters.JumpVelocity; _updateContact = false; Delayer.ExecuteAfter(() => _updateContact = true, 0.2f); OnContactLost(); }
public void Jump() { if (CurrentContact == Contact.None) { return; } CurrentContact = Contact.None; _velocity += Up * _parameters.JumpVelocity; _updateContact = false; Delayer.ExecuteAfter(() => _updateContact = true, 0.2f); OnContactLost(); }