Example #1
0
 public void ReleaseDown()
 {
     if (ActionStateEnum != ActionStateType.Idle)
     {
         ActionState.ActionUp();
     }
 }
Example #2
0
        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();
            }
        }