void AssetLoadCallBack(GameObject ro, ParamData data) { if (hasDestroy_) { Destroy(ro); return; } //RestMemberCellUI (); COM_SimplePlayerInst csi = TeamSystem.GetTeamMemberByIndex(data.iParam2); if (csi == null) { Destroy(ro); return; /// 这里可能有问题 } ro.name = csi.instId_.ToString(); TeamMemberCell tell; if (int.Parse(ro.name) == TeamSystem.GetTeamMembers()[0].instId_) { tell = teamCells[0].GetComponent <TeamMemberCell>(); UIManager.SetButtonEventHandler(teamCells[0].gameObject, EnumButtonEvent.OnClick, OnClickShowTips, 0, 0); } else { tell = findEmptyPos(); } ro.transform.parent = tell.modPos; //tell.modPos.transform.localPosition = new Vector3 (20f,-166f,-100f); tell.gameObject.name = csi.instId_.ToString(); ro.transform.localPosition = Vector3.zero; ro.transform.rotation = new Quaternion(ro.transform.rotation.x, -180, ro.transform.rotation.z, ro.transform.rotation.w); ro.transform.localScale = new Vector3(EntityAssetsData.GetData(data.iParam3).zoom_, EntityAssetsData.GetData(data.iParam3).zoom_, EntityAssetsData.GetData(data.iParam3).zoom_); tell.PlayerInst = csi; ro.AddComponent <EffectLevel> (); EffectLevel el = ro.GetComponent <EffectLevel> (); el.target = tell.gameObject.GetComponent <UIWidget>(); rosobj.Add(ro); UpdateUI(); }