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); }
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); }
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]); } }
public void CreateBubbleText(string text, talkIcon icon, float showTime, AudioClip clip) { LocalCreateBubbleText(text, (int)icon, showTime, clip); }
/// <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); }
public void CreateBubbleTextNetworkAsap(string text, talkIcon icon, float showTime, AudioClip clip) { Utils.NetworkCommand(this, "RPCCreateBubbleTextAsap", RPCMode.AllBuffered, text, (int)icon, showTime, clip); }
public void CreateBubbleTextAsap(string text, talkIcon icon, float showTime, AudioClip clip) { RPCCreateBubbleTextAsap(text, (int)icon, showTime, clip); }
public void CreateBubbleTextNetwork(string text, talkIcon icon, float showTime, int clipIndex) { Utils.NetworkCommand(this, "RPCCreateBubbleText", RPCMode.AllBuffered, text, (int)icon, showTime, clipIndex); }
/// <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); }