This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
namespace StructureAR | |
{ | |
public class AutoScanController : MonoBehaviour { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine.UI; | |
public class CortanaController : MonoBehaviour { | |
public GameObject botUIPanel; | |
public List<string> questions = new List<string>(); | |
public List<string> answers = new List<string>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.2"> | |
<CommandSet xml:lang="en-us" Name="CommandSet_en-us"> | |
<AppName> Bot World </AppName> | |
<Example> Bot World, I want to play </Example> | |
<Command Name="checkScore"> | |
<Example> Bot World, Did anyone beat me? </Example> | |
<ListenFor RequireAppName="BeforeOrAfterPhrase"> Did anyone beat me </ListenFor> | |
<Feedback> Yes.</Feedback> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case ActivationKind.VoiceCommand: | |
var commandArgs = args as VoiceCommandActivatedEventArgs; | |
SpeechRecognitionResult speechRecognitionResult = commandArgs.Result; | |
string voiceCommandName = speechRecognitionResult.RulePath[0]; | |
switch (voiceCommandName) | |
{ | |
case "startPlay": | |
{ | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
var storageFile = | |
await Windows.Storage.StorageFile | |
.GetFileFromApplicationUriAsync(new Uri("ms-appx:///vcd.xml")); | |
await Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager | |
.InstallCommandDefinitionsFromStorageFileAsync(storageFile); | |
Debug.WriteLine("VCD installed"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class InvokedByCortana : MonoBehaviour { | |
public delegate void OnEvent(object arg); | |
public OnEvent onEvent = null; | |
public GameObject flarePrefab; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Diagnostics; | |
using System.Threading.Tasks; | |
using Windows.Media.SpeechRecognition; | |
using Windows.Media.SpeechSynthesis; | |
using Windows.UI.Core; | |
using Windows.UI.Xaml; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Chronos; | |
public class BaseBehaviour : MonoBehaviour | |
{ | |
public Timeline time | |
{ | |
get | |
{ | |
return GetComponent<Timeline>(); |
OlderNewer