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