public static NetworkGame getInstance() { bool flag = NetworkGame._instance == null; if (flag) { NetworkGame._instance = new NetworkGame(); } return(NetworkGame._instance); }
private void BeginAcceptTcpClient(IAsyncResult result) { NetworkGame.accept(NetworkGame._clientGameListener.EndAcceptTcpClient(result)); NetworkGame._clientGameListener.BeginAcceptTcpClient(new AsyncCallback(this.BeginAcceptTcpClient), null); }