Beispiel #1
0
    public void TryToLinkServer()
    {
        if (Network.peerType != NetworkPeerType.Disconnected)
        {
            return;
        }

        //ScreenLog.Log("try to link server...");
        if (NetCtrlScript == null)
        {
            NetCtrlScript = NetCtrl.GetInstance();
            if (NetCtrlScript != null)
            {
                NetCtrlScript.IsBackStartLevel = false;
                NetCtrlScript.SetIsConnectServer(true);
            }
        }
        isTryLinkServer = true;
        bIsLinkServer   = true;
    }