Пример #1
0
        public static NetworkGame getInstance()
        {
            bool flag = NetworkGame._instance == null;

            if (flag)
            {
                NetworkGame._instance = new NetworkGame();
            }
            return(NetworkGame._instance);
        }
Пример #2
0
 private void BeginAcceptTcpClient(IAsyncResult result)
 {
     NetworkGame.accept(NetworkGame._clientGameListener.EndAcceptTcpClient(result));
     NetworkGame._clientGameListener.BeginAcceptTcpClient(new AsyncCallback(this.BeginAcceptTcpClient), null);
 }