Class WaitForCollision2D
Inheritance
WaitForCollision2D
Assembly: Unity.Muse.Behavior.dll
Syntax
[Serializable]
[NodeDescription("Wait For Collision 2D", "Waits for an OnCollision event 2D on the specified agent.", "Wait for [CollisionType] on [Agent]", "", "Action/Physics", "052fe53d512e3efb9caf40020014227c", null, "C:\\temp\\com.unity.muse.behavior@0.9\\Packages\\com.unity.muse.behavior\\Runtime\\Execution\\Nodes\\Actions\\Conditional\\WaitForCollision2DAction.cs")]
public class WaitForCollision2D : Action
Fields
Agent
Declaration
[SerializeReference]
public BlackboardVariable<GameObject> Agent
Field Value
CollideObject
Declaration
[SerializeReference]
public BlackboardVariable<GameObject> CollideObject
Field Value
CollisionType
Declaration
[SerializeReference]
public BlackboardVariable<WaitForCollision2D.ECollisionType> CollisionType
Field Value
Tag
Declaration
[SerializeReference]
public BlackboardVariable<string> Tag
Field Value
Methods
OnEnd()
OnEnd is called when the node has stopped running.
Declaration
protected override void OnEnd()
Overrides
OnStart()
OnStart is called when the node starts running.
Declaration
protected override Node.Status OnStart()
Returns
Type |
Description |
Node.Status |
The status of the node.
|
Overrides
OnUpdate()
OnUpdate is called each frame while the node is running.
Declaration
protected override Node.Status OnUpdate()
Returns
Type |
Description |
Node.Status |
The status of the node.
|
Overrides