Exemplo n.º 1
0
 override public void Update()
 {
     for (int indexCommand = 0; indexCommand < this.commands.Count; indexCommand++)
     {
         InputCommand command = this.commands[indexCommand];
         command.Update();
     }
 }
Exemplo n.º 2
0
 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();
         }
     }
 }