Search Results for

    Show / Hide Table of Contents

    Class AgentPickUpTask

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

    Inheritance
    Object
    BaseTask
    AgentBaseTask
    AgentPickUpTask
    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 AgentPickUpTask : AgentBaseTask, IAgentTask, ITask, ISerializable

    Constructors

    AgentPickUpTask()

    Declaration
    public AgentPickUpTask()

    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
    Type Name Description
    SerializationDataContainer serializer

    IKWeightIncrease(Agent, Item)

    Declaration
    public IEnumerator IKWeightIncrease(Agent agent, Item item)
    Parameters
    Type Name Description
    Agent agent
    Item item
    Returns
    Type Description
    System.Collections.Generic.IEnumerator

    PickUpObject(Agent, Item)

    Declaration
    public void PickUpObject(Agent agent, Item item)
    Parameters
    Type Name Description
    Agent agent
    Item item

    Serialize(SerializationDataContainer)

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

    StartExecution(Agent)

    Starts the pickUp task

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

    The agent which should execute the pickUP task

    Overrides
    BaseTask.StartExecution(Agent)

    Implements

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