Class AgentPickUpTask
Defines pick up tasks for picking up objects that are near to the agent
Uses the NavMeshAgent component
Inheritance
AgentPickUpTask
Assembly: cs.temp.dll.dll
Syntax
public class AgentPickUpTask : AgentBaseTask, IAgentTask, ITask, ISerializable
Constructors
AgentPickUpTask()
Declaration
AgentPickUpTask(GameObject, SocketId)
Create an AgentPickUpTask using the object that should be picked up
Declaration
public AgentPickUpTask(GameObject pickupObject, SocketId socketId = null)
Parameters
Type |
Name |
Description |
GameObject |
pickupObject |
The object that the agent should pick up
|
SocketId |
socketId |
Bodypart that the object should be attached to, standard is the right Hand
|
Properties
PickupObject
Object that should be picked up
Declaration
public GameObject PickupObject { get; protected set; }
Property Value
Type |
Description |
GameObject |
|
SocketId
Bodypart that the object should attached to
Declaration
public SocketId SocketId { get; protected set; }
Property Value
Type |
Description |
SocketId |
|
Methods
Deserialize(SerializationDataContainer)
Declaration
public void Deserialize(SerializationDataContainer serializer)
Parameters
IKWeightIncrease(Agent, Item)
Declaration
public IEnumerator IKWeightIncrease(Agent agent, Item item)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerator |
|
PickUpObject(Agent, Item)
Declaration
public void PickUpObject(Agent agent, Item item)
Parameters
Serialize(SerializationDataContainer)
Declaration
public void Serialize(SerializationDataContainer serializer)
Parameters
StartExecution(Agent)
Declaration
public override void StartExecution(Agent agent)
Parameters
Type |
Name |
Description |
Agent |
agent |
The agent which should execute the pickUP task
|
Overrides
Implements