private void HitOpponentOf(WizardPlayer hitter) { foreach (var w in Wizards) { if (w == hitter) continue; w.Animations.PlayDamageAnim(); w.Audio.PlayPain(); } }
private void SetVictor(WizardPlayer victor) { WinningComboDisplay.Clear(); SetWizardInputEnabled(false); foreach (var wiz in Wizards) { if (wiz == victor) { wiz.Animations.PlayWinAnim(); } else { wiz.Animations.PlayLoseAnim(); wiz.Audio.PlayDeath(); wiz.Sigil.SetStage(0); wiz.Lightning.enabled = true; } } MusicAudio.Stop(); EndGameSound.Play(); StartCoroutine("ResetGameAfterDelay"); }