Exemple #1
0
 private void BroadcastText(GUITextObject textObject)
 {
     if (DisplayTextNotification != null)
     {
         DisplayTextNotification(textObject);
         listOfText.Remove(textObject);
     }
 }
Exemple #2
0
    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);
    }
Exemple #3
0
 public int CompareTo(GUITextObject other)
 {
     return(base.CompareTo(other));
 }