Ejemplo n.º 1
0
    public void SetName()
    {
        Text[] textArray = inputField.GetComponentsInChildren <Text>();
        foreach (Text t in textArray)
        {
            if (t.gameObject.name == "Text_UserName")
            {
                vars.SetPlayerName(t.text);
            }
        }

        Debug.Log(vars.GetPlayerName());

        // Activate Button
    }
Ejemplo n.º 2
0
    public void SetName()
    {
        string n = playerName_Text.text;

        var.SetPlayerName(n);
    }