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

        //存入缓存
        public void PushPoliceToCache(GamePoliceSkill police)
        {
            if (!m_cachePolice.Contains(police))
            {
                m_cachePolice.Add(police);
            }
        }
Esempio n. 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);
     }
 }
Esempio n. 3
0
        public void AddPoliceSkill(long police)
        {
            GamePoliceSkill policeSkill = GameSkillCarryFactory.Instance.Create(SkillCarrier.Police, police) as GamePoliceSkill;

            policeSkills.Add(policeSkill);
        }