Ejemplo n.º 1
0
    protected override void AssignThisJob(Controllable assignee, bool? appendToTaskQueue)
    {
        base.AssignThisJob(assignee, appendToTaskQueue);

        if(!appendToTaskQueue.HasValue) {
            assignee.AddTaskInterruptAfterCurrent(new MoveResourceTask(assignee.GetComponent<MoveResourceTaskScript>(), this));
        } else {
            assignee.AddTask(new MoveResourceTask(assignee.GetComponent<MoveResourceTaskScript>(), this), appendToTaskQueue.Value);
        }
    }