Class KaijuAgentGraphAction
Base class to create Unity Behavior actions for use with Kaiju Agents.
Inheritance
System.Object
KaijuAgentGraphAction
Namespace: KaijuSolutions.Agents.Behavior
Syntax
[Serializable]
public abstract class KaijuAgentGraphAction
Fields
agent
The agent this is for.
Declaration
public BlackboardVariable<KaijuAgent> agent
Field Value
| Type | Description |
|---|---|
| BlackboardVariable<KaijuAgent> |
Methods
EnsureAgent()
Ensure there is an agent.
Declaration
protected Status EnsureAgent()
Returns
| Type | Description |
|---|---|
| Status | Success if we have an agent, otherwise failure. |
EnsureAgent(GameObject)
Ensure there is an agent.
Declaration
public static BlackboardVariable<KaijuAgent> EnsureAgent(GameObject go)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | go | The current object to check the blackboard for. |
Returns
| Type | Description |
|---|---|
| BlackboardVariable<KaijuAgent> | The found or created variable or NULL if there was no agent. |
OnStart()
OnStart is called when the node starts running.
Declaration
protected override Status OnStart()
Returns
| Type | Description |
|---|---|
| Status | The status of the node. |
OnUpdate()
OnUpdate is called each frame while the node is running.
Declaration
protected override Status OnUpdate()
Returns
| Type | Description |
|---|---|
| Status | The status of the node. |