Exemplo n.º 1
0
    public void SaySomething()
    {
        if (this.tts_controller.IsMaryTTSspeaking())
        {
            return;
        }

        // Quick Dirty hack: reset the facial expression to normal before speaking.
        FacialExpressionsController faceCtrl = GetComponent <FacialExpressionsController>();

        if (faceCtrl)
        {
            faceCtrl.ClearFacialExpression();
        }

        // Select a random sentence and say it.
        int    rnd_id   = Random.Range(0, SENTENCES.Length);
        string sentence = SENTENCES [rnd_id];

        //Debug.Log(sentence);
        this.tts_controller.MaryTTSspeak(sentence);
    }
Exemplo n.º 2
0
 private static void napi_ClearFacialExpression()
 {
     _facialExpressionController.ClearFacialExpression();
 }