C# Класс NaviInstructions, Navi

This script controls showing the user instructions on how to use the device
Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
devicePrefab GameObject
instructionPanel Text

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

OnDestroy() публичный Метод

Removes events when this game object is destroyed i.e. when the game starts
public OnDestroy ( ) : void
Результат void

Start() публичный Метод

Waits for smart device to connect and listens for events
public Start ( ) : void
Результат void

Описание свойств

devicePrefab публичное свойство

public GameObject devicePrefab
Результат GameObject

instructionPanel публичное свойство

public Text instructionPanel
Результат Text