Property | Type | Description | |
---|---|---|---|
devicePrefab | GameObject | ||
instructionPanel | Text |
Method | Description | |
---|---|---|
OnDestroy ( ) : void |
Removes events when this game object is destroyed i.e. when the game starts
|
|
Start ( ) : void |
Waits for smart device to connect and listens for events
|
Method | Description | |
---|---|---|
InstructionGuide ( ) : IEnumerator |
Coroutine to guide the user through the instructions on how to use their smart device
|
|
OnDeviceConnect ( int recSocketID ) : void |
Callback for when Device connects, so we start showing instructions
|
|
OnDeviceDisconnect ( int recSocketID ) : void |
Callback for when Device disconnects, so we can restart instructions
|
|
OnPermissionTap ( int playerID, int fingerID, Vector2 pos ) : void |
Wait for user to verify that the smart device is ready
|
|
OnToggleTap ( int playerID, int fingerID, Vector2 pos ) : void |
Waits for smart device to recieve a double tap
|
|
SetInstruction ( string instruction ) : void |
Displays instructions on text GUI
|