Esempio n. 1
0
    public void LocalCreateBubbleText(string text, int icon, float showTime, AudioClip clip)
    {
        talkIcon actualIcon = (talkIcon)icon;

        if (showTime <= 0f)
        {
            showTime = text.Length / 10 + 3;
        }

        bubbleListText.Add(text);
        bubbleListIcon.Add(actualIcon);
        bubbleListTime.Add(showTime);
        bubbleListClip.Add(clip);
    }
Esempio n. 2
0
    public void RPCCreateBubbleTextAsap(string text, int icon, float showTime, AudioClip clip)
    {
        talkIcon actualIcon = (talkIcon)icon;

        if (showTime <= 0f)
        {
            showTime = text.Length / 10 + 3;
        }

        bubbleListText.Insert(0, text);
        bubbleListIcon.Insert(0, actualIcon);
        bubbleListTime.Insert(0, showTime);
        bubbleListClip.Insert(0, clip);
    }
Esempio n. 3
0
    public void RPCCreateBubbleText(string text, int icon, float showTime, int clipIndex)
    {
        talkIcon actualIcon = (talkIcon)icon;

        if (showTime <= 0f)
        {
            showTime = text.Length / 10 + 3;
        }

        bubbleListText.Add(text);
        bubbleListIcon.Add(actualIcon);
        bubbleListTime.Add(showTime);
        if (actualIcon == talkIcon.Driver)
        {
            bubbleListClip.Add(dialogResources.clipsFromDriver[clipIndex]);
        }
        else         //if(actualIcon == talkIcon.Harpooner)
        {
            bubbleListClip.Add(dialogResources.clipsFromHarpooner[clipIndex]);
        }
    }
Esempio n. 4
0
 public void CreateBubbleText(string text, talkIcon icon, float showTime, AudioClip clip)
 {
     LocalCreateBubbleText(text, (int)icon, showTime, clip);
 }
Esempio n. 5
0
 /// <summary>
 /// Adds a chat bubble text at the end of the chat list for this player only.
 /// </summary>
 /// <param name="text">The text to show.</param>
 /// <param name="icon">The icon to show.</param>
 /// <param name="showTime">Time to show the text. It's recommended to leave it at 0 for an automatic calcul.</param>
 public void CreateBubbleText(string text, talkIcon icon, AudioClip clip)
 {
     CreateBubbleText(text, icon, 0f, clip);
 }
Esempio n. 6
0
 public void CreateBubbleTextNetworkAsap(string text, talkIcon icon, float showTime, AudioClip clip)
 {
     Utils.NetworkCommand(this, "RPCCreateBubbleTextAsap", RPCMode.AllBuffered, text, (int)icon, showTime, clip);
 }
Esempio n. 7
0
 public void CreateBubbleTextAsap(string text, talkIcon icon, float showTime, AudioClip clip)
 {
     RPCCreateBubbleTextAsap(text, (int)icon, showTime, clip);
 }
Esempio n. 8
0
 public void CreateBubbleTextNetwork(string text, talkIcon icon, float showTime, int clipIndex)
 {
     Utils.NetworkCommand(this, "RPCCreateBubbleText", RPCMode.AllBuffered, text, (int)icon, showTime, clipIndex);
 }
Esempio n. 9
0
 /// <summary>
 /// Adds a chat bubble text at the end of the chat list for both players.
 /// </summary>
 /// <param name="text">The text to show.</param>
 /// <param name="icon">The icon to show.</param>
 /// <param name="showTime">Time to show the text. It's recommended to leave it at 0 for an automatic calcul.</param>
 public void CreateBubbleTextNetwork(string text, talkIcon icon, int clipIndex)
 {
     CreateBubbleTextNetwork(text, icon, 0f, clipIndex);
 }