public void ShowAltarHead(int type, Ientity entity) { if (entity == null || entity.realObject == null || entity.RealEntity == null) return; if (!entity.IsSameCamp(PlayerManager.Instance.LocalPlayer.EntityCamp)) return; AltarInHead head = GetAsignedAltarHead(entity); if (head == null) return; head.CreateHead(type); //UIAltarInHead.Instance.SetCurrHeadIcon (type,entity.realObject.transform); }
public void ShowAltarHead(int entityID,int type) { MapObjConfigInfo configInfp = ConfigReader.MapObjXmlInfoDict[entityID]; if (configInfp == null) return; //int index = configInfp.un32ObjIdx; //int camp = configInfp.n32Camp; //UInt64 sGUID = CTools.MakeGUID((Common.GameData.EObjectType)type, (ulong)index); AltarInHead head = GetAsignedAltarHead(entityID); if (head == null) { Debug.LogError("AltarHead error:" + entityID); return; } head.CreateHead(type); }