Class UnityEventSensor
Inheritance
UnityEventSensor
Assembly: Xareus.Unity.Libraries.dll
Syntax
[FunctionDescription("This sensor can be activated by a unity event trigerred from a component.")]
public class UnityEventSensor : AUnitySensor
Constructors
UnityEventSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public UnityEventSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
COMPONENT
Declaration
protected const string COMPONENT = "Component"
Field Value
Component
Declaration
[ConfigurationParameter("Component", Necessity.Required)]
protected Component Component
Field Value
Triggered
Declaration
Field Value
UnityEventField
Declaration
[ConfigurationParameter("Event", Necessity.Required)]
[Provider("Component")]
[ProvideConstraint(typeof(UnityEventBase))]
[ProvideConstraint(FieldType.Unity)]
protected FieldInfo UnityEventField
Field Value
Methods
SafeReset()
Reset a sensor. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
Declaration
public override void SafeReset()
Overrides
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
SafeStopCheck()
Stops a sensor. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
This will be called when the transition contining this sensor is no longer ready to be triggered.
Either it already fired or tokens moved and the transition no longer has the necessary upstream tokens
Declaration
public override void SafeStopCheck()
Overrides