void Start()
    {
        plugin = SpeechRecognizerPlugin.GetPlatformPluginVersion(this.gameObject.name);

        startListeningBtn.onClick.AddListener(StartListening);
        continuousListeningTgle.onValueChanged.AddListener(SetContinuousListening);
    }
Ejemplo n.º 2
0
    void Start()
    {
        plugin = SpeechRecognizerPlugin.GetPlatformPluginVersion(this.gameObject.name);

        startListeningBtn.onClick.AddListener(StartListening);

        changeaction = gameObject.GetComponent <Changeaction>();
    }
    private void Start()
    {
        plugin = SpeechRecognizerPlugin.GetPlatformPluginVersion(this.gameObject.name);

        startListeningBtn.onClick.AddListener(StartListening);
        stopListeningBtn.onClick.AddListener(StopListening);
        continuousListeningTgle.onValueChanged.AddListener(SetContinuousListening);
        languageDropdown.onValueChanged.AddListener(SetLanguage);
        maxResultsInputField.onEndEdit.AddListener(SetMaxResults);
    }
Ejemplo n.º 4
0
    void Start()
    {
        plugin = SpeechRecognizerPlugin.GetPlatformPluginVersion(this.gameObject.name);

        startListeningBtn.onClick.AddListener(StartListening);
    }