private void Update() { foreach (Button.ButtonType PressedButton in Enum.GetValues(typeof(Button.ButtonType))) { if (Input.GetKeyDown((KeyCode)PressedButton)) { if (PressedButtons.Count < buttonSequence.ButtonsInSequence.Length) { PressedButtons.Add(PressedButton.ToString()); } CompareButtons(); } } }
public override String ToString() { return(String.Format("MouseEventArgs: [{0},{1}], {2}, [{3}] ", X, Y, PressedButton.ToString(), String.Join(",", UsedKeys.ToArray()))); }