C# Class CardboardControlTrigger

Inheritance: MonoBehaviour
Exibir arquivo Open project: waltzaround/Cardboard-Asteroids Class Usage Examples

Public Properties

Property Type Description
OnClick CardboardControlDelegate
OnDown CardboardControlDelegate
OnUp CardboardControlDelegate
clickSpeedThreshold float
printDebugInfo bool
triggerKey KeyCode,
useEventCooldowns bool
useMagnet bool
useTouch bool
vibrateOnClick bool
vibrateOnDown bool
vibrateOnUp bool

Public Methods

Method Description
FixedUpdate ( ) : void
IsHeld ( ) : bool
ResetMagnetState ( ) : void
SecondsHeld ( ) : float
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
CheckForClick ( ) : void
CheckKey ( ) : void
CheckMagnet ( ) : void
CheckTouch ( ) : void
IsTouching ( ) : bool
KeyFor ( string direction ) : bool
PrintDebug ( ) : void
ReportClick ( ) : void
ReportDown ( ) : void
ReportUp ( ) : void

Method Details

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

IsHeld() public method

public IsHeld ( ) : bool
return bool

ResetMagnetState() public method

public ResetMagnetState ( ) : void
return void

SecondsHeld() public method

public SecondsHeld ( ) : float
return float

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

OnClick public_oe property

public CardboardControlDelegate OnClick
return CardboardControlDelegate

OnDown public_oe property

public CardboardControlDelegate OnDown
return CardboardControlDelegate

OnUp public_oe property

public CardboardControlDelegate OnUp
return CardboardControlDelegate

clickSpeedThreshold public_oe property

public float clickSpeedThreshold
return float

printDebugInfo public_oe property

public bool printDebugInfo
return bool

triggerKey public_oe property

public KeyCode, triggerKey
return KeyCode,

useEventCooldowns public_oe property

public bool useEventCooldowns
return bool

useMagnet public_oe property

public bool useMagnet
return bool

useTouch public_oe property

public bool useTouch
return bool

vibrateOnClick public_oe property

public bool vibrateOnClick
return bool

vibrateOnDown public_oe property

public bool vibrateOnDown
return bool

vibrateOnUp public_oe property

public bool vibrateOnUp
return bool