Exemplo n.º 1
0
 protected void Speak(string content, float stayLength)
 {
     if (!speakInCD || !stopTalking)
     {
         TTTEventsManager.main.SomeoneSpoke(gameObject);
         chatBalloon.SetTextAndActive(content, stayLength);
         speakInCD = true;
         Invoke("UnlockSpeakCD", speakCDLength);
     }
 }
Exemplo n.º 2
0
 protected void Speak(string content, float stayLength)
 {
     if (!speakInCD || !stopTalking)
     {
         TTTEventsManager.main.SomeoneSpoke(gameObject);
         if (chatBalloon == null)
         {
             chatBalloon = gameObject.GetComponentInChildren <ChatBalloon> ();
         }
         chatBalloon.SetTextAndActive(content, stayLength);
         speakInCD = true;
         Invoke("UnlockSpeakCD", speakCDLength);
     }
     ThingConsole.Log(gameObject.name + "is speaking: " + content);
 }