Пример #1
0
        private void HitOpponentOf(WizardPlayer hitter)
        {
            foreach (var w in Wizards)
            {
                if (w == hitter) continue;

                w.Animations.PlayDamageAnim();
                w.Audio.PlayPain();
            }
        }
Пример #2
0
        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");
        }