public void GetNextCommand()
 {
     if (commandQueue.Count > 0)
     {
         currentCommand = commandQueue.Dequeue();
         //Physics2D.SyncTransforms();
         currentCommand.Initialize();
     }
     else
     {
         currentCommand = null;
         OnCompleteAction();
     }
 }
Example #2
0
 public void GetNextCommand()
 {
     if (commandQueue.Count > 0)
     {
         currentCommand = commandQueue.Dequeue();
         currentCommand.Initialize();
     }
     else
     {
         currentCommand = null;
         OnCompleteAction();
         visualsHelper.ResetOrientation();
     }
 }