public void AddCommand(int index, ObjectInventoryManager obj, INPCCommand command) { model.commands.Add(new NPCCommandModel() { index = index, gameObject = obj, destinationCommand = command }); }
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(); } }
public void SelectedRouteObject(ObjectInventoryManager obj, int index, INPCCommand command) { stateManager.CameraShow(); screenManager.Show(); screenManager.AddRoute(index, obj, command); }
public void AddRoute(int index, ObjectInventoryManager obj, INPCCommand command) { npc.AddCommand(index, obj, command); }