Search Results for

    Show / Hide Table of Contents

    Class AgentDropTask

    Defines pick up tasks for picking up objects that are near to the agent Uses the NavMeshAgent component

    Inheritance
    Object
    BaseTask
    AgentBaseTask
    AgentDropTask
    Implements
    IAgentTask
    ITask
    ISerializable
    Inherited Members
    AgentBaseTask.DependsOnTasks
    AgentBaseTask.CanStart
    AgentBaseTask.IsFinished
    AgentBaseTask.FinishTask()
    AgentBaseTask.FinishTaskAsFailed()
    AgentBaseTask.WaitFor(AgentBaseTask[])
    BaseTask.State
    BaseTask.EvaluateTaskState()
    BaseTask.StopExecution()
    BaseTask.StopAsFailed()
    BaseTask.StopAsSucceeded()
    BaseTask.Tick(Agent)
    Namespace: i5.VirtualAgents.AgentTasks
    Assembly: cs.temp.dll.dll
    Syntax
    public class AgentDropTask : AgentBaseTask, IAgentTask, ITask, ISerializable

    Constructors

    AgentDropTask()

    Declaration
    public AgentDropTask()

    AgentDropTask(GameObject)

    Create an AgentDropTask using the object that is currently carried and should be dropped, if no object is given, the agent will drop all objects that are currently carried

    Declaration
    public AgentDropTask(GameObject dropObject = null)
    Parameters
    Type Name Description
    GameObject dropObject

    The object that the agent should drop

    Properties

    DropObject

    Object that should be picked up

    Declaration
    public GameObject DropObject { get; }
    Property Value
    Type Description
    GameObject

    Methods

    Deserialize(SerializationDataContainer)

    Declaration
    public void Deserialize(SerializationDataContainer serializer)
    Parameters
    Type Name Description
    SerializationDataContainer serializer

    Serialize(SerializationDataContainer)

    Declaration
    public void Serialize(SerializationDataContainer serializer)
    Parameters
    Type Name Description
    SerializationDataContainer serializer

    StartExecution(Agent)

    Starts the drop task

    Declaration
    public override void StartExecution(Agent agent)
    Parameters
    Type Name Description
    Agent agent

    The agent which should execute the drop task

    Overrides
    BaseTask.StartExecution(Agent)

    Implements

    IAgentTask
    ITask
    ISerializable
    In This Article
    Back to top Documentation of the Virtual Agents Framework