Class AgentDropTask
Defines pick up tasks for picking up objects that are near to the agent Uses the NavMeshAgent component
Inherited Members
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 |