private List <GamePoliceSkill> m_cachePolice = new List <GamePoliceSkill>(); //所有缓存待释放的警员 //存入缓存 public void PushPoliceToCache(GamePoliceSkill police) { if (!m_cachePolice.Contains(police)) { m_cachePolice.Add(police); } }
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); } }
public void AddPoliceSkill(long police) { GamePoliceSkill policeSkill = GameSkillCarryFactory.Instance.Create(SkillCarrier.Police, police) as GamePoliceSkill; policeSkills.Add(policeSkill); }