Esempio n. 1
0
 void ProcessKey(MasterSparkCodeCommandType c)
 {
     if (InputSequence.IsCorrectInput(c))
     {
         InputSequence.DequeueCommand();
         if (InputSequence.IsEmpty())
         {
             SetVictory();
         }
     }
     else
     {
         SetFailure();
     }
 }
Esempio n. 2
0
 public void SetInput(MasterSparkCodeCommandType c)
 {
     Input = c;
     UpdateVisual();
 }
 public bool IsCorrectInput(MasterSparkCodeCommandType playerInput)
 {
     return(playerInput == InputSequence.Peek().Input);
 }