Example #1
0
    void Start()
    {
        this.gameObject.name = ANDROIDBRIDGE_GO_NAME;

        startListeningBtn.onClick.AddListener(StartListening);
        ctrl = this.GetComponent <SpeechCommandController>();
    }
 public void Awake()
 {
     if (Instance == null)
     {
         Instance      = this;
         voicecommands = new Dictionary <string, VoiceCMD>();
     }
 }
Example #3
0
    public void Start()
    {
        Debug.Log("Start add cmd");
        controller = SpeechCommandController.Instance;
        VoiceCMD cmd = ScriptableObject.CreateInstance <VoiceCMD>();

        cmd.command        = command;
        cmd.onVoiceCommand = onVoiceCommand;
        controller.AddVoiceCommand(cmd);
    }