C# 클래스 NaviInstructions, Navi

This script controls showing the user instructions on how to use the device
상속: MonoBehaviour
파일 보기 프로젝트 열기: vmohan7/Navi

공개 프로퍼티들

프로퍼티 타입 설명
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