private void BroadcastText(GUITextObject textObject) { if (DisplayTextNotification != null) { DisplayTextNotification(textObject); listOfText.Remove(textObject); } }
private void HandleDisplayTextNotification(GUITextObject textObject) { /* if (coroutine != null) { * StopCoroutine (coroutine); * }*/ // This fixes the linefeed not parsing. string tempText = textObject.textToSpawn.Replace("\\n", "\n"); coroutine = UpdateText(tempText); StartCoroutine(coroutine); // coroutine = UpdateText (textObject.textToSpawn); // StartCoroutine (coroutine); }
public int CompareTo(GUITextObject other) { return(base.CompareTo(other)); }