コード例 #1
0
 public void AddCommand(int index, ObjectInventoryManager obj, INPCCommand command)
 {
     model.commands.Add(new NPCCommandModel()
     {
         index = index, gameObject = obj, destinationCommand = command
     });
 }
コード例 #2
0
 public void GetNextCommand()
 {
     if (commandQueue.Count > 0)
     {
         currentCommand = commandQueue.Dequeue();
         //Physics2D.SyncTransforms();
         currentCommand.Initialize();
     }
     else
     {
         currentCommand = null;
         OnCompleteAction();
     }
 }
コード例 #3
0
ファイル: RandomNPC.cs プロジェクト: dhon2407/LSW-alpha
 public void GetNextCommand()
 {
     if (commandQueue.Count > 0)
     {
         currentCommand = commandQueue.Dequeue();
         currentCommand.Initialize();
     }
     else
     {
         currentCommand = null;
         OnCompleteAction();
         visualsHelper.ResetOrientation();
     }
 }
コード例 #4
0
 public void SelectedRouteObject(ObjectInventoryManager obj, int index, INPCCommand command)
 {
     stateManager.CameraShow();
     screenManager.Show();
     screenManager.AddRoute(index, obj, command);
 }
コード例 #5
0
 public void AddRoute(int index, ObjectInventoryManager obj, INPCCommand command)
 {
     npc.AddCommand(index, obj, command);
 }