C# Class NaviInstructions, Navi

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

Méthodes publiques

Свойство Type Description
devicePrefab GameObject
instructionPanel Text

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Start() public méthode

Waits for smart device to connect and listens for events
public Start ( ) : void
Résultat void

Property Details

devicePrefab public_oe property

public GameObject devicePrefab
Résultat GameObject

instructionPanel public_oe property

public Text instructionPanel
Résultat Text