Class DropdownSensor
Inheritance
DropdownSensor
Assembly: Xareus.Unity.Libraries.dll
Syntax
[Renamed("Xareus.Scenarios.Unity.UI.DropdownSensor", "Xareus.Unity.Librairies")]
public class DropdownSensor : AUnitySensor
Constructors
DropdownSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public DropdownSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
DROPDOWN
Declaration
[EventContextEntry]
public static readonly string DROPDOWN
Field Value
VALUE
Declaration
[EventContextEntry]
public static readonly string VALUE
Field Value
dropdown
Declaration
[ConfigurationParameter("Dropdown", Necessity.Required)]
protected Dropdown dropdown
Field Value
Type |
Description |
Dropdown |
|
eventContext
Declaration
protected SimpleDictionary eventContext
Field Value
value
Declaration
[ConfigurationParameter("Value", Necessity.Required)]
protected int value
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