예제 #1
0
    public void AddFactoryTask(FactoryUIData taskData)
    {
        FactoryBuildTask newFactoryTask = new FactoryBuildTask(taskData);

        newFactoryTask.allocatedColonists = new List <Colonist>();
        for (int i = 0; i < taskData.colonistAssignedCount; i++)
        {
            Colonist idleColonist = GameController.Instance.colonistController.GetIdleColonist();
            GameController.Instance.colonistController.AllocateColonistToTask(idleColonist, newFactoryTask);
        }

        factoryData.currentBuildTasks.Add(newFactoryTask);
    }
예제 #2
0
 public FactoryBuildTask(FactoryUIData taskData)
 {
     buildItem                = taskData.selectedItem;
     itemBuildAmount          = taskData.buildCount;
     buildItem.currentUpgrade = taskData.selectedUpgrade;
 }