Exemplo n.º 1
0
    public string Accept(ref int id)
    {
        if (useRadialMenu)
        {
            id = (id == 0)? 0 : panel * 4 + id;
        }
        string word = cands[id].word;

        for (int i = 0; i < CandidatesNum; ++i)
        {
            cands[i].word = "";
        }
        for (int i = 0; i < RadialNum; ++i)
        {
            radialText[i].text = "";
        }

        if (word != "")
        {
            Debug.Log("Accept " + word);
            textManager.AddWord(word);
            history.Add(new Candidate(word));
        }
        else
        {
            word = "#";
        }

        return(word);
    }
Exemplo n.º 2
0
 private void Update()
 {
     if (Time.time >= nextWordTime)
     {
         textManager.AddWord();
         nextWordTime = Time.time + wordDelay;
         wordDelay   *= .99f;
     }
 }