Exemplo n.º 1
0
    public static TextMesh FloatingText(Vector3 pos, string txt, Color colour)
    {
        GameObject obj    = instance.Spawn("Text3D", pos);
        TextMesh   txtMsh = obj.GetComponent <TextMesh>();

        txtMsh.text  = txt;
        txtMsh.color = colour;
        return(txtMsh);
    }