public static void Initialise()
 {
     for (int i = 0; i < (int)DebugTextConstants.kMaxPerFrame; i++)
     {
         texts[i] = new TextMeshWrapper("debugText" + i.ToString());
     }
 }
Beispiel #2
0
 protected void SetLayoutText(TextMeshWrapper textMesh, string message)
 {
     if (textMesh == null)
     {
         return;
     }
     textMesh.text = message;
 }
Beispiel #3
0
    public void addText(string s)
    {
        TextMeshWrapper wrapper = GetComponent <TextMeshWrapper>();

        if (wrapper != null)
        {
            allText = GetComponent <TextMeshWrapper>().getWrappedString(allText + s);
        }
        else
        {
            allText = allText + s;
        }
    }
Beispiel #4
0
    public void setText(string s)
    {
        charTimer = 0;
        charIndex = 0;
        TextMeshWrapper wrapper = GetComponent <TextMeshWrapper>();

        if (wrapper != null)
        {
            allText = GetComponent <TextMeshWrapper>().getWrappedString(s);
        }
        else
        {
            allText = s;
        }
    }
Beispiel #5
0
 public SetText(TextMeshWrapper self)
 {
     this.self = self;
 }