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