Class UnityEventSensor
A Sensor that can be activated by calling its Activate Method
Inheritance
UnityEventSensor
Assembly: Xareus.Unity.Librairies.dll
Syntax
[FunctionDescription("This sensor can be triggered by calling its Activatemethod")]
public class UnityEventSensor : AUnitySensor
Constructors
UnityEventSensor(Event, Dictionary<string, Parameter>, IContext, IContext, IContext)
Declaration
public UnityEventSensor(Event @event, Dictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext)
Parameters
Fields
activate
Declaration
Field Value
Methods
Activate(bool)
Call this method to activate the sensor
Declaration
public void Activate(bool value = true)
Parameters
Type |
Name |
Description |
bool |
value |
|
SafeSensorCheck()
This method is called at each scenario update. Note that this code will be executed in unity's thread
Declaration
public override ASensor.Result SafeSensorCheck()
Returns
Overrides