Exemplo n.º 1
0
    public void playclip(string eventString)
    {
        StartRepeating();
        foreach (NewSpeech ns in speechEv)
        {
            if (ns.speechTitle == eventString)
            {
                speechPlaying = ns;
                speechInt     = 0;
                AS.clip       = ns.subbedClips[speechInt].clip;
                speechPlaying.subbedClips[speechInt].speechText.text = ns.subbedClips[speechInt].subtitle;

                AS.Play();

                isPlaying = true;
                return;
            }
        }
    }
Exemplo n.º 2
0
 protected void OnNewSpeech(object sender, RunnerEventArgs args) => NewSpeech?.Invoke(sender, args);