Beispiel #1
0
 public override void HandleInput(InputState input)
 {
     if (input.IsMenuUp(ControllingPlayer))
     {
         if(correctAnswer == 1)
         {
             parent.ProcessAnswer(true, lifeSpan);
         }
         else
         {
             parent.ProcessAnswer(false, 0);
         }
         ExitScreen();
     }
     else if (input.IsMenuDown(ControllingPlayer))
     {
         if(correctAnswer == 2)
         {
             parent.ProcessAnswer(true, lifeSpan);
         }
         else
         {
             parent.ProcessAnswer(false, 0);
         }
         ExitScreen();
     }
     else if(input.IsMenuLeft(ControllingPlayer))
     {
         if(correctAnswer == 3)
         {
             parent.ProcessAnswer(true, lifeSpan);
         }
         else
         {
             parent.ProcessAnswer(false, 0);
         }
         ExitScreen();
     }
     else if(input.IsMenuRight(ControllingPlayer))
     {
         if(correctAnswer == 4)
         {
             parent.ProcessAnswer(true, lifeSpan);
         }
         else
         {
             parent.ProcessAnswer(false, 0);
         }
         ExitScreen();
     }
 }
Beispiel #2
0
 public override void HandleInput(InputState input)
 {
     if (input.IsMenuUp(ControllingPlayer))
     {
         ProcessAnswer(1);
         ExitScreen();
     }
     else if (input.IsMenuDown(ControllingPlayer))
     {
         ProcessAnswer(4);
         ExitScreen();
     }
     else if(input.IsMenuLeft(ControllingPlayer))
     {
         ProcessAnswer(2);
         ExitScreen();
     }
     else if(input.IsMenuRight(ControllingPlayer))
     {
         ProcessAnswer(3);
         ExitScreen();
     }
 }