/// <summary> /// applies the given effect to the wave, provided it is not a survivor wave /// </summary> public void applyWaveEffect(IEffectWave e) { if (wave.isSurvivorWave == false) { wave = e.alteredWaveData(wave); updateWaveStats(); } }
} //instructs all cards in the hand to refresh themselves public void applyWaveEffect(IEffectWave e) { foreach (CardScript c in cards) { if (c != null) { c.SendMessage("applyWaveEffect", e); } } } //applies the wave effect to all cards in the hand