Beispiel #1
0
 void OnAssistantResponded(object source, OnAssistantResponseEventArgs e)
 {
     // Do not read out the dialog response for the 'action' and 'nav' intents
     if (e.Dialog != null)
     {
         Speak(e.Dialog);
     }
 }
 private void CheckIntent(object source, OnAssistantResponseEventArgs e)
 {
     // if the user uses their voice to request the windows to open/close
     if (e.Intent == "action--rotate-arrays")
     {
         RotateArrays();
     }
 }
Beispiel #3
0
 private void CheckIntent(object source, OnAssistantResponseEventArgs e)
 {
     // if hte user uses their voice to request the windows to open/close
     if (e.Intent == "action--openclose" && (LocationTracker.currentLocation == "Quest" || LocationTracker.currentLocation == "Outside"))
     {
         ToggleQuestHatch();
     }
 }
 private void CheckIntent(object source, OnAssistantResponseEventArgs e)
 {
     // if hte user uses their voice to request the windows to open/close
     if (e.Intent == "action--openclose" && LocationTracker.currentLocation == "Cupola")
     {
         ToggleCupolaWindows();
     }
 }
 public void OnAssistantResponsed(object source, OnAssistantResponseEventArgs e)
 {
     SetResponse(e.Input, e.Intent, e.Entities, e.Dialog);
     // Toggle the debug panel is the #action--debug intent recognised
     if (e.Intent != "" && e.Intent == "action--debug")
     {
         ToggleTranscriptActive();
     }
 }
Beispiel #6
0
    public void OnAssistantResponded(object source, OnAssistantResponseEventArgs e)
    {
        // Toggle the debug panel is the #action--debug intent recognised
        string module = ModuleRecognised(e.Entities);

        if (e.Intent != "" && e.Intent == "nav--path" && module != "")
        {
            ShowPathTo(module);
        }
    }
Beispiel #7
0
    public void OnAssistantResponded(object source, OnAssistantResponseEventArgs e)
    {
        // Toggle the debug panel is the #action--debug intent recognised
        string module = ModuleRecognised(e.Entities);

        if (e.Intent != "" && e.Intent == "nav--teleport" && module != "")
        {
            MovePlayer(module);
        }
        else if (e.Intent != "" && e.Intent == "nav--reset")
        {
            ResetPlayer();
        }
    }