Exemple #1
0
 public void otherAvatarOnJump(KBEngine.Entity entity)
 {
     if (entity.renderObj != null)
     {
         SceneEntityObject seo = ((SceneEntityObject)entity.renderObj);
         seo.stopPlayAnimation("");
         seo.playJumpAnimation();
     }
 }
 public void Jump()   // this method is an exception because it is called by "RPG_Controller" (line 73) if the jump button was hit. Therefore it has the access level "public".
 {
     currentState = CharacterState.Jump;
     if (seo != null)
     {
         seo.stopPlayAnimation("jump");
         seo.playJumpAnimation();
         if (seo.kbentity != null)
         {
             ((KBEngine.Avatar)seo.kbentity).jump();
         }
     }
 }