Example #1
0
        public static NetworkGame getInstance()
        {
            bool flag = NetworkGame._instance == null;

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