void SendChatMessage(string text, NetworkViewID myID) { Debug.Log(text); currentList = currentList + "\n" + text; updateScroll = true; if (ChatBubble.Instance != null) { ChatBubble.DisplayChat(myID); } }
void SendChatMessage(string text, NetworkViewID ID) { Debug.Log(text); messageCount++; currentList = currentList + "\n" + text; // scroll it scrollPosition = new Vector2(0, fontSize * Mathf.Max(0, messageCount - 4)); //display chat bubble over speaking player if (ChatBubble.Instance != null) { ChatBubble.DisplayChat(ID); } }