コード例 #1
0
    public override void Process(TaskProvider taskProvider)
    {
        base.Process(taskProvider);

        ActorTaskProvider actorTaskProvider = taskProvider as ActorTaskProvider;

        if (actorTaskProvider != null)
        {
            SetTaskProvider(actorTaskProvider);
        }
    }
コード例 #2
0
    protected override void OnValidate()
    {
        base.OnValidate();

        if (TaskProvider != null)
        {
            TaskProvider = TaskProvider.ScriptClone();
        }

        if (Task != null)
        {
            Task = Task.ScriptClone();
        }

        if (Command != null)
        {
            Command = Command.ScriptClone();
        }
    }
コード例 #3
0
 public void RemoveTaskProvider()
 {
     TaskProvider = null;
 }
コード例 #4
0
 public void SetTaskProvider(ActorTaskProvider taskProvider)
 {
     TaskProvider = taskProvider;
 }