Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        Text   msg  = GameObject.Find("Text").GetComponent <Text>();
        string name = ButtonScript.getName();

        msg.text = "Hi! " + name + " Welcome!";
    }