override public void Update() { for (int indexCommand = 0; indexCommand < this.commands.Count; indexCommand++) { InputCommand command = this.commands[indexCommand]; command.Update(); } }
public void Update() { for (int indexCommand = 0; indexCommand < this.commands.Count; indexCommand++) { InputCommand command = this.commands[indexCommand]; if (CommandStack.Constraint == null || CommandStack.Constraint.UsableCommand(command.id)) { command.Update(); } } }