Пример #1
0
    public void OnClick()
    {
        int    myPort = int.Parse(port.text);
        string myip   = ip.text;

        localData.playerName = username.text;

        server.SetUpClient(myip, myPort);

        menuEffects.SetActive(false);
        nextMenu.SetActive(true);
        thisMenu.SetActive(false);
    }