public void ReleaseDown() { if (ActionStateEnum != ActionStateType.Idle) { ActionState.ActionUp(); } }
public void UpAction() { int heightChange = SourceRectangle.Height; ActionState.ActionUp(); heightChange = SourceRectangle.Height - heightChange; CollisionDetection.FixCollisionFromStateChange(this, heightChange); /*This is sound effect for jumping*/ if (OnGround) { SoundItems.SoundFactory.Instance.JumpN(); } }