C# Class CardboardControlBox

Inheritance: MonoBehaviour
Show file Open project: waltzaround/Cardboard-Asteroids Class Usage Examples

Public Properties

Property Type Description
OnTilt CardboardControlDelegate
tiltKey KeyCode,
useEventCooldowns bool
vibrateOnOrientationTilt bool

Public Methods

Method Description
IsTilted ( ) : bool
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
CheckOrientation ( ) : void
KeyFor ( string movement ) : bool
ReportTilt ( ) : void

Method Details

IsTilted() public method

public IsTilted ( ) : bool
return bool

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

OnTilt public property

public CardboardControlDelegate OnTilt
return CardboardControlDelegate

tiltKey public property

public KeyCode, tiltKey
return KeyCode,

useEventCooldowns public property

public bool useEventCooldowns
return bool

vibrateOnOrientationTilt public property

public bool vibrateOnOrientationTilt
return bool