Beispiel #1
0
 public void MoveUndo()
 {
     if (stack.Count > 0)
     {
         CommandKey3 command = stack.Pop();
         command.Undo(transform);
     }
 }
Beispiel #2
0
 void Start()
 {
     ok     = new CommandOK();
     cancel = new CommandCancel();
     key1   = new CommandKey1();
     key2   = new CommandKey2();
     key3   = new CommandKey3();
     key4   = new CommandKey4();
 }