Class AgentAnimationTask
Starts an animation by setting the trigger in the animator belonging to the agent. It will stop it after playtime second using the stop trigger if provided or else the startTrigger again
Inherited Members
Namespace: i5.VirtualAgents.AgentTasks
Assembly: cs.temp.dll.dll
Syntax
public class AgentAnimationTask : AgentBaseTask, IAgentTask, ITask, ISerializable
Constructors
AgentAnimationTask()
Declaration
public AgentAnimationTask()
AgentAnimationTask(String, Single, String, String, GameObject)
Declaration
public AgentAnimationTask(string startTrigger, float playTime, string stopTrigger = "", string layer = "", GameObject aimTarget = null)
Parameters
Type | Name | Description |
---|---|---|
String | startTrigger | |
Single | playTime | |
String | stopTrigger | |
String | layer | |
GameObject | aimTarget |
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 execution of the task; starts the animation
Declaration
public override void StartExecution(Agent agent)
Parameters
Type | Name | Description |
---|---|---|
Agent | agent | The agent on which the task is executed |
Overrides
StopExecution()
Stops the animation
Declaration
public override void StopExecution()