// simulates the user pushing a command // called by input listeners usually when interpreting clicks as answers to AwaitAdvance public void SimulateCommand(Command simulatedCommand) { simulatedAdvance = true; InputListener listener = listeners[listeners.Count - 1]; if (!disabledListeners.Contains(listener)) { listener.OnCommand(simulatedCommand, Event.Down); listener.OnCommand(simulatedCommand, Event.Up); } }