Class KaijuSensorAction<T, T0>
Action to end a sensor.
Namespace: KaijuSolutions.Agents.Behavior.Sensors
Syntax
[Serializable]
public abstract class KaijuSensorAction<T, T0>
where T : KaijuSensor where T0 : UnityEngine.Object
Type Parameters
| Name | Description |
|---|---|
| T | |
| T0 |
Fields
observed
Where to set the observed value to.
Declaration
public BlackboardVariable<T0> observed
Field Value
| Type | Description |
|---|---|
| BlackboardVariable<T0> |
sensor
The sensor this is for.
Declaration
public BlackboardVariable<T> sensor
Field Value
| Type | Description |
|---|---|
| BlackboardVariable<T> |
Methods
HandleSensor()
Read from the sensor.
Declaration
protected abstract Status HandleSensor()
Returns
| Type | Description |
|---|---|
| Status | The result of reading from the sensor. |
OnEnd()
OnEnd is called when the node has stopped running.
Declaration
protected override void OnEnd()
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. |
ValidSensor()
See if this sensor is valid or not.
Declaration
protected bool ValidSensor()
Returns
| Type | Description |
|---|---|
| System.Boolean | If the sensor is valid or not. |