Example #1
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;
 }
Example #2
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);
    }
Example #3
0
 public void CloseAdd()
 {
     UIConver.SetActive(false);
 }
Example #4
0
 public void clickAdd()
 {
     UIConver.SetActive(true);
 }