예제 #1
0
 public static SceneGuideTaskManager Instance()
 {
     if (instance == null)
     {
         instance = new SceneGuideTaskManager();
     }
     return(instance);
 }
예제 #2
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);
     }
 }
        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);
                }
            }
        }