Class KaijuGlobalController
Base class to inherit for easy interaction with all KaijuAgents in the scene. Simply override the methods you need to use callbacks without needing to worry about binding. If you override either OnEnable or OnDisable, you must call their respective base methods for binding and cleanup.
Inheritance
Inherited Members
Namespace: KaijuSolutions.Agents
Syntax
public abstract class KaijuGlobalController : KaijuBehaviour
Methods
OnActuatorDisabled(KaijuActuator)
Global callback for when a KaijuActuator has finishing becoming disabled.
Declaration
protected virtual void OnActuatorDisabled(KaijuActuator actuator)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuActuator | actuator | The KaijuActuator. |
OnActuatorDone(KaijuActuator)
Global callback for when a KaijuActuator has successfully fully completed its action.
Declaration
protected virtual void OnActuatorDone(KaijuActuator actuator)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuActuator | actuator | The KaijuActuator. |
OnActuatorEnabled(KaijuActuator)
Global callback for when a KaijuActuator has finishing becoming enabled.
Declaration
protected virtual void OnActuatorEnabled(KaijuActuator actuator)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuActuator | actuator | The KaijuActuator. |
OnActuatorExecuting(KaijuActuator)
Global callback for when a KaijuActuator is continuing to execute.
Declaration
protected virtual void OnActuatorExecuting(KaijuActuator actuator)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuActuator | actuator | The KaijuActuator. |
OnActuatorFailed(KaijuActuator)
Global callback for when a KaijuActuator has failed its execution.
Declaration
protected virtual void OnActuatorFailed(KaijuActuator actuator)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuActuator | actuator | The KaijuActuator. |
OnActuatorInterrupted(KaijuActuator)
Global callback for when a KaijuActuator has been interrupted during its execution, cancelling the execution.
Declaration
protected virtual void OnActuatorInterrupted(KaijuActuator actuator)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuActuator | actuator | The KaijuActuator. |
OnActuatorStarted(KaijuActuator)
Global callback for when a KaijuActuator has started to execute.
Declaration
protected virtual void OnActuatorStarted(KaijuActuator actuator)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuActuator | actuator | The KaijuActuator. |
OnAgentAutomaticSense(KaijuAgent)
Global callback for when all automatic KaijuSensors have finished being executed for a KaijuAgent.
Declaration
protected virtual void OnAgentAutomaticSense(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentAutoRotate(KaijuAgent)
Global autorotation changed callback for an KaijuAgent
Declaration
protected virtual void OnAgentAutoRotate(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentDestroyed(KaijuAgent)
Global callback for when a KaijuAgent has finishing becoming destroyed.
Declaration
protected virtual void OnAgentDestroyed(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentDisabled(KaijuAgent)
Global callback for when a KaijuAgent has finishing becoming disabled.
Declaration
protected virtual void OnAgentDisabled(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentEnabled(KaijuAgent)
Global callback for when the a KaijuAgent has finishing becoming enabled.
Declaration
protected virtual void OnAgentEnabled(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentLookSpeed(KaijuAgent)
Global look speed changed callback for an KaijuAgent
Declaration
protected virtual void OnAgentLookSpeed(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentLookTarget(KaijuAgent)
Global callback for when the look target has been set for an KaijuAgent.
Declaration
protected virtual void OnAgentLookTarget(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentMove(KaijuAgent)
Global callback for when an KaijuAgent has moved.
Declaration
protected virtual void OnAgentMove(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentMoveAcceleration(KaijuAgent)
Global movement acceleration changed callback for an KaijuAgent
Declaration
protected virtual void OnAgentMoveAcceleration(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAgentMoveSpeed(KaijuAgent)
Global movement speed changed callback for an KaijuAgent
Declaration
protected virtual void OnAgentMoveSpeed(KaijuAgent agent)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | agent | The KaijuAgent. |
OnAllPreSetOrientation(KaijuBehaviour)
Global callback for before the KaijuBehaviour's orientation has been set.
Declaration
protected virtual void OnAllPreSetOrientation(KaijuBehaviour behaviour)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuBehaviour | behaviour | The KaijuBehaviour. |
OnAllPreSetPosition(KaijuBehaviour)
Global callback for before a KaijuBehaviour's position has been set.
Declaration
protected virtual void OnAllPreSetPosition(KaijuBehaviour behaviour)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuBehaviour | behaviour | The KaijuBehaviour. |
OnAllPreSetScale(KaijuBehaviour)
Global callback for before the KaijuBehaviour's scale has been set.
Declaration
protected virtual void OnAllPreSetScale(KaijuBehaviour behaviour)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuBehaviour | behaviour | The KaijuBehaviour. |
OnAllSetOrientation(KaijuBehaviour)
Global callback for when the KaijuBehaviour's orientation has been set.
Declaration
protected virtual void OnAllSetOrientation(KaijuBehaviour behaviour)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuBehaviour | behaviour | The KaijuBehaviour. |
OnAllSetPosition(KaijuBehaviour)
Global callback for when the KaijuBehaviour's position has been set.
Declaration
protected virtual void OnAllSetPosition(KaijuBehaviour behaviour)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuBehaviour | behaviour | The KaijuBehaviour. |
OnAllSetScale(KaijuBehaviour)
Global callback for when the KaijuBehaviour's scale has been set.
Declaration
protected virtual void OnAllSetScale(KaijuBehaviour behaviour)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuBehaviour | behaviour | The KaijuBehaviour. |
OnMovementPerformed(KaijuMovement)
Global callback for a KaijuMovement being performed.
Declaration
protected virtual void OnMovementPerformed(KaijuMovement movement)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuMovement | movement | The KaijuMovement. |
OnMovementStarted(KaijuMovement)
Global callback for a KaijuMovement starting.
Declaration
protected virtual void OnMovementStarted(KaijuMovement movement)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuMovement | movement | The KaijuMovement. |
OnMovementStopped(KaijuMovement)
Global callback for a KaijuMovement stopping.
Declaration
protected virtual void OnMovementStopped(KaijuMovement movement)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuMovement | movement | The KaijuMovement. |
OnSensorDisabled(KaijuSensor)
Global callback for when a KaijuSensor has been disabled.
Declaration
protected virtual void OnSensorDisabled(KaijuSensor sensor)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuSensor | sensor | The KaijuSensor. |
OnSensorEnabled(KaijuSensor)
Global callback for when a KaijuSensor has been enabled.
Declaration
protected virtual void OnSensorEnabled(KaijuSensor sensor)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuSensor | sensor | The KaijuSensor. |
OnSensorSense(KaijuSensor)
Global callback for when a KaijuSensor has been run.
Declaration
protected virtual void OnSensorSense(KaijuSensor sensor)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuSensor | sensor | The KaijuSensor. |
Operators
Implicit(GameObject to KaijuGlobalController)
Implicit conversion from a GameObject.
Declaration
public static implicit operator KaijuGlobalController(GameObject o)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | o | The GameObject. |
Returns
| Type | Description |
|---|---|
| KaijuGlobalController | The global controller attached to the GameObject if there was one. |
Implicit(KaijuAgent to KaijuGlobalController)
Implicit conversion from a KaijuAgent.
Declaration
public static implicit operator KaijuGlobalController(KaijuAgent a)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgent | a | The KaijuAgent. |
Returns
| Type | Description |
|---|---|
| KaijuGlobalController | The global controller attached to the KaijuAgent if there was one. |
Implicit(KaijuGlobalController to KaijuAgent)
Implicit conversion to a KaijuAgent.
Declaration
public static implicit operator KaijuAgent(KaijuGlobalController c)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuGlobalController | c |
Returns
| Type | Description |
|---|---|
| KaijuAgent | The KaijuAgent attached to The KaijuGlobalController if there was one. |
Implicit(Transform to KaijuGlobalController)
Implicit conversion from a transform.
Declaration
public static implicit operator KaijuGlobalController(Transform t)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | t | The transform. |
Returns
| Type | Description |
|---|---|
| KaijuGlobalController | The global controller attached to the transform if there was one. |