API reference

Axis1DSwitch Class

Extends MonoBehaviour
Implements IAxis1D
An Axis1D that switches between two Axis1D based on an ActiveState.

Protected Fields

AxisWhenActive : IAxis1D
Signature
IAxis1D AxisWhenActive
AxisWhenInactive : IAxis1D
Signature
IAxis1D AxisWhenInactive

Protected Properties

Current : IAxis1D
[Get]
Signature
IAxis1D Current

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void

Methods

InjectActiveState ( activeState )
Signature
void InjectActiveState(IActiveState activeState)
Parameters
activeState: IActiveState
Returns
void
InjectAllAxis1DSwitch ( activeState , axisWhenActive , axisWhenInactive )
Signature
void InjectAllAxis1DSwitch(IActiveState activeState, IAxis1D axisWhenActive, IAxis1D axisWhenInactive)
Parameters
activeState: IActiveState
axisWhenActive: IAxis1D
axisWhenInactive: IAxis1D
Returns
void
Value ()
Signature
float Value()
Returns
float