Пример #1
0
 //Question mode selection
 public void ButtonQuestion()
 {
     start = true;
     UI.SetActive(true);
     UIStatus.SetActive(true);
     UIAdd.SetActive(true);
     UIChoose.SetActive(false);
     timeMore = Time.time;
     StartCoroutine(wait(2, 1f));
     noteText.text = "Your task is to answer questions to move to objects!";
 }
Пример #2
0
 //Auto mode selection
 public void ButtonAuto()
 {
     StopAllCoroutines();
     UIChoose.SetActive(false);
     UI.SetActive(false);
     autoMove = true;
     start    = false;
     UIAdd.SetActive(true);
     UIConver.SetActive(false);
     UIStatus.SetActive(false);
     indexAuto = 0;
 }
Пример #3
0
    //start
    private void Start()
    {
        audioSource = GetComponent <AudioSource>();
        if (keywords != null)
        {
            recognizer = new KeywordRecognizer(keywords, confidence);
            recognizer.OnPhraseRecognized += Recognizer_OnPhraseRecognized;
            recognizer.Start();
        }

        //UI start
        Randoms();
        pointText.text = " 0 ";
        UiEnd.SetActive(false);
        UIStatus.SetActive(false);
        UI.SetActive(false);
        UIChoose.SetActive(false);
        UIAdd.SetActive(false);
        UIConver.SetActive(false);
    }