public static GGClient getClientInstance() //单例模式 { if (_client == null) { _client = new GGClient(); } return(_client); }
public void initNetWork() { _client = Local.getClientInstance(); // _client.sendData("xxx");//hello _client.eventRecvd += onRecv; }