Exemplo n.º 1
0
    public void SetFollowText(GameObject obj, string text)
    {
        TextFollow textFollow = obj.GetComponent <TextFollow>();

        if (textFollow != null)
        {
            textFollow.SetText(text);
        }
    }
Exemplo n.º 2
0
 public void CreateFollowText(string text, Transform location)
 {
     instance     = Instantiate(texto);
     instanceText = instance.GetComponent <TextFollow> ();
     instance.transform.SetParent(canvas.transform, false);
 }