예제 #1
0
 public void Execute()
 {
     while (needsPath.TryDequeue(out AgentData item))
     {
         var destination = BuildingCacheSystem.GetCommercialBuilding();
         NavAgentSystem.SetDestinationStatic(item.entity, item.agent, destination, item.agent.areaMask);
     }
 }
 public void Execute()
 {
     while (needsPath.TryDequeue(out int index))
     {
         var destination = BuildingCacheSystem.GetCommercialBuilding();
         NavAgentSystem.SetDestinationStatic(data.Entities[index], data.Agents[index],
                                             data.Positions[index], data.Rotations[index], destination);
     }
 }