public void OnLoginAckPlayerLoginResult(byte[] pBuf) { GameProto.LoginAckPlayerLoginResult oRet = GameProto.LoginAckPlayerLoginResult.Parser.ParseFrom(pBuf); if (oRet == null) { H5Helper.H5LogStr("OnTest error parse"); return; } H5Helper.H5LogStr("login ret : " + oRet.DwResult.ToString()); }
public void OnLoginAckPlayerLoginResult(byte[] pBuf) { GameProto.LoginAckPlayerLoginResult oRet = GameProto.LoginAckPlayerLoginResult.Parser.ParseFrom(pBuf); if (oRet == null) { SampleDebuger.Log("OnTest error parse"); return; } SampleDebuger.Log("login ret : " + oRet.DwResult.ToString()); AssetBundleLoader.Instance().LoadLevelAsset(GameConstant.g_szLobbyScene, delegate() { if (!string.IsNullOrEmpty(PlayerData.Instance().proGameIp)) { H5Manager.Instance().ConnectGame(PlayerData.Instance().proGameIp, PlayerData.Instance().proGamePort); } } ); }