public void OnLoginAckPlayerOnLinePlayer(byte[] pBuf) { GameProto.LoginAckPlayerOnLinePlayer oRet = GameProto.LoginAckPlayerOnLinePlayer.Parser.ParseFrom(pBuf); if (oRet == null) { SampleDebuger.Log("OnLoginAckPlayerOnLinePlayer error parse"); return; } SampleDebuger.Log("online player ret : " + oRet.DwResult.ToString()); AssetBundleLoader.Instance().LoadAsset(GameObjectConstant.GetABUIPath(GameObjectConstant.g_szPlayerList), GameObjectConstant.g_szPlayerList, delegate(UnityEngine.Object ob) { RoleList pRoleList = RoleList.CreateInstance(ob, MainCanvas.Instance().transform); pRoleList.SetPlayerIds(oRet.QwPlayerId); } ); }
public void OnLoginAckPlayerOnLinePlayer(byte[] pBuf) { GameProto.LoginAckPlayerOnLinePlayer oRet = GameProto.LoginAckPlayerOnLinePlayer.Parser.ParseFrom(pBuf); if (oRet == null) { H5Helper.H5LogStr("OnLoginAckPlayerOnLinePlayer error parse"); return; } H5Helper.H5LogStr("online player ret : " + oRet.DwResult.ToString()); RoleList pRoleList = RoleList.CreateInstance(GameObjectConstent.g_szPlayerList, transform.parent); pRoleList.SetPlayerIds(oRet.QwPlayerId); //GameObject go_RoleList = Instantiate(Resources.Load<GameObject>(GameObjectConstent.g_szPlayerList), transform.parent); //go_RoleList.GetComponent<RoleList>().SetPlayerIds(oRet.QwPlayerId); }