Class ButtonClickedSensor
Inheritance
ButtonClickedSensor
Assembly: Xareus.Unity.Libraries.dll
[Renamed("SEVEN.Unity.UI.ButtonClickedSensor", "Assembly-CSharp")]
[Renamed("Xareus.Scenarios.Unity.UI.ButtonClickedSensor", "Xareus.Unity.Librairies")]
public class ButtonClickedSensor : AUnitySensor
Constructors
ButtonClickedSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public ButtonClickedSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
Declaration
[EventContextEntry]
public static readonly string BUTTON
Field Value
Declaration
[ConfigurationParameter("Button", Necessity.Required)]
protected Button button_clicked
Field Value
eventContext
Declaration
protected SimpleDictionary eventContext
Field Value
Methods
Declaration
public void ReceiveClick()
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
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
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