示例#1
0
        private void OnBlowUpSpellFinished(Spell spell, object userData)
        {
            EndGameScreen screen = (EndGameScreen)userData;

            if (this.AreBlowUpSpellsFinished())
            {
                screen.Show();
            }
        }
示例#2
0
        public void ShowScreen(EndGameScreen screen)
        {
            bool flag = false;

            if ((this.m_enemyBlowUpSpell != null) && !this.m_enemyBlowUpSpell.IsFinished())
            {
                flag = true;
                this.m_enemyBlowUpSpell.AddFinishedCallback(new Spell.FinishedCallback(this.OnBlowUpSpellFinished), screen);
            }
            if ((this.m_friendlyBlowUpSpell != null) && !this.m_friendlyBlowUpSpell.IsFinished())
            {
                flag = true;
                this.m_friendlyBlowUpSpell.AddFinishedCallback(new Spell.FinishedCallback(this.OnBlowUpSpellFinished), screen);
            }
            if (!flag)
            {
                screen.Show();
            }
        }