C# Class NaviInstructions, Navi

This script controls showing the user instructions on how to use the device
Inheritance: MonoBehaviour
Exibir arquivo Open project: vmohan7/Navi

Public Properties

Property Type Description
devicePrefab GameObject
instructionPanel Text

Public Methods

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

Private Methods

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

Method Details

OnDestroy() public method

Removes events when this game object is destroyed i.e. when the game starts
public OnDestroy ( ) : void
return void

Start() public method

Waits for smart device to connect and listens for events
public Start ( ) : void
return void

Property Details

devicePrefab public_oe property

public GameObject devicePrefab
return GameObject

instructionPanel public_oe property

public Text instructionPanel
return Text