Ejemplo n.º 1
0
    private void OnEnable()
    {
        var tmp = OnlineManager.GetSocketInfo();

        clientInfoUI.SetIpAndPort(tmp.LocalIpAddress.ToString(), tmp.LocalPort.ToString());
        connectedServerInfoUI.SetIpAndPort(tmp.RemoteIpAddress.ToString(), tmp.RemotePort.ToString());
    }
Ejemplo n.º 2
0
    private void OnEnable()
    {
        OnlineManager.StartServer();

        var tmp = OnlineManager.GetSocketInfo();

        serverInfoUI.SetIpAndPort(tmp.LocalIpAddress.ToString(), tmp.LocalPort.ToString());
    }