예제 #1
0
        private List <GamePoliceSkill> m_cachePolice = new List <GamePoliceSkill>(); //所有缓存待释放的警员

        //存入缓存
        public void PushPoliceToCache(GamePoliceSkill police)
        {
            if (!m_cachePolice.Contains(police))
            {
                m_cachePolice.Add(police);
            }
        }
예제 #2
0
 public void CreatePoliceSkill(IList <long> polices)
 {
     this.policeSkills.Clear();
     for (int i = 0; i < polices.Count; i++)
     {
         GamePoliceSkill policeSkill = GameSkillCarryFactory.Instance.Create(SkillCarrier.Police, polices[i]) as GamePoliceSkill;
         policeSkills.Add(policeSkill);
     }
 }
예제 #3
0
        public void AddPoliceSkill(long police)
        {
            GamePoliceSkill policeSkill = GameSkillCarryFactory.Instance.Create(SkillCarrier.Police, police) as GamePoliceSkill;

            policeSkills.Add(policeSkill);
        }