Corgi Engine
v9.1
|
A component to handle switches More...
Public Types | |
enum | SwitchStates { SwitchStates.Left, SwitchStates.Right } |
the possible states of the switch More... | |
Public Member Functions | |
virtual void | InitializeState () |
virtual void | SwitchState () |
Use this method to go from one state to the other More... | |
Public Attributes | |
MMSpriteReplace | SwitchKnob |
a SpriteReplace to represent the switch knob More... | |
SwitchStates | InitialState = SwitchStates.Left |
the state the switch should start in More... | |
UnityEvent | SwitchOn |
the methods to call when the switch is turned on More... | |
UnityEvent | SwitchOff |
the methods to call when the switch is turned off More... | |
Protected Member Functions | |
override void | Initialization () |
On init, we set our current switch state More... | |
Properties | |
SwitchStates | CurrentSwitchState [get, set] |
the current state of the switch More... | |
A component to handle switches
|
strong |
|
protected |
On init, we set our current switch state
|
virtual |
|
virtual |
Use this method to go from one state to the other
SwitchStates MoreMountains.MMInterface.MMSwitch.InitialState = SwitchStates.Left |
the state the switch should start in
MMSpriteReplace MoreMountains.MMInterface.MMSwitch.SwitchKnob |
a SpriteReplace to represent the switch knob
UnityEvent MoreMountains.MMInterface.MMSwitch.SwitchOff |
the methods to call when the switch is turned off
UnityEvent MoreMountains.MMInterface.MMSwitch.SwitchOn |
the methods to call when the switch is turned on
|
getset |
the current state of the switch