Beispiel #1
0
 public void AddBuildingTips(Ientity entity)
 {
     if (SceneGuideTaskManager.Instance().IsNewsGuide() == SceneGuideTaskManager.SceneGuideType.NoGuide)
     {
         return;
     }
     if (!npcIdArray.Contains(entity.NpcGUIDType))
     {
         return;
     }
     if (buildingDic.ContainsKey(entity.NpcGUIDType))
     {
         buildingDic[entity.NpcGUIDType] = entity;
     }
     else
     {
         buildingDic.Add(entity.NpcGUIDType, entity);
     }
 }
Beispiel #2
0
        private void CheckAddHeroBornVoice()
        {
            if (heroVoicDic != null && heroVoicDic.Count == 3)
            {
                return;
            }
            IEnumerable <Ientity> Items    = GameMethod.GetEnemyItemListByRadius(PlayerManager.Instance.LocalPlayer, GameConstDefine.PlayerLockTargetDis);
            List <Ientity>        ItemList = Items.ToList();

            if (ItemList == null || ItemList.Count == 0)
            {
                return;
            }
            for (int i = ItemList.Count - 1; i >= 0; i--)
            {
                Ientity entity = ItemList[i];
                if (SceneGuideTaskManager.Instance().IsFakeHero(entity.NpcGUIDType))
                {
                    AddHeroVoice(entity.NpcGUIDType);
                }
            }
        }