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