private AudioSource SearchForClassSpecificVo() { foreach (SpellZoneTag tag in this.m_ClassSpecificVoData.m_ZonesToSearch) { List <Zone> zones = SpellUtils.FindZonesFromTag(this, tag, this.m_ClassSpecificVoData.m_SideToSearch); AudioSource source = this.SearchForClassSpecificVo(zones); if (source != null) { return(source); } } return(null); }
private bool SearchForCard() { if (!string.IsNullOrEmpty(this.m_CardSpecificVoData.m_CardId)) { foreach (SpellZoneTag tag in this.m_CardSpecificVoData.m_ZonesToSearch) { List <Zone> zones = SpellUtils.FindZonesFromTag(this, tag, this.m_CardSpecificVoData.m_SideToSearch); if (this.IsCardInZones(zones)) { return(true); } } } return(false); }
protected void BlockZones(bool block) { if (this.m_ZonesToDisable != null) { foreach (SpellZoneTag tag in this.m_ZonesToDisable) { List <Zone> list = SpellUtils.FindZonesFromTag(tag); if (list != null) { foreach (Zone zone in list) { zone.BlockInput(block); } } } } }