Ejemplo n.º 1
0
 public void EvaluateAllInputs()
 {
     if (leftClicked > 0 && rightClicked > 0)
     {
         controller.Jump(true);
         jumped = true;
         if (leftClicked == rightClicked)
         {
             if (controller.MovingLeft())
             {
                 controller.MoveLeft();
             }
             else
             {
                 controller.MoveRight();
             }
         }
         else if (leftClicked > rightClicked)
         {
             controller.MoveLeft();
         }
         else
         {
             controller.MoveRight();
         }
     }
     else
     {
         if (rightClicked == leftClicked)
         {
             controller.StopMovement();
         }
         else if (rightClicked > leftClicked)
         {
             controller.MoveRight();
         }
         else
         {
             controller.MoveLeft();
         }
     }
 }