Exemplo n.º 1
0
        void Awake()
        {
            // Calls OnDoubleTap method when a double click event fires
            GestureManager.RegisterDoubleTap(OnDoubleTap);
            // Calls OnAirTap method when a click event fires
            GestureManager.RegisterAirTap(OnAirTap);

            SpeechManager.RegisterKeyword("start metronome", OnVoiceCommand);
            SpeechManager.RegisterKeyword("pause metronome", OnVoiceCommand);
            SpeechManager.RegisterKeyword("show menu", OnVoiceCommand);
            SpeechManager.RegisterKeyword("start music", OnVoiceCommand);
            SpeechManager.RegisterKeyword("pause music", OnVoiceCommand);
            SpeechManager.RegisterKeyword("play tone", OnVoiceCommand);
        }
Exemplo n.º 2
0
        // Use this for initialization
        void Start()
        {
            cam = Camera.main;

            GestureManager.RegisterAirTap(OnAirTap);
        }