Ejemplo n.º 1
0
    public void Login()
    {
        string playerName = playerNameInput.text;

        if (playerName == "")
        {
            playerName = "Player " + Random.Range(1000, 10000);
        }

        PlayerPrefs.SetString("PlayerName", playerName);

        NetworkLobbyHelper.Connect(playerName);
    }