Exemplo n.º 1
0
    void ActivateFireball()
    {
        m_ballIsOnFire = true;

        m_ballScript.ActivateOnFireBonus();

        m_fireBallCountdown = new TimeCountdown();

        m_fireBallCountdown.onTimeChanged += OnFireballCountdownTimeChanged;
        m_fireBallCountdown.onTimeElapsed += OnFireballCountdownElapsed;

        m_fireBallCountdown.Start(StaticConf.Gameplay.FIREBALL_TIME_SECONDS);

        m_fireballMultiplier = StaticConf.Score.FIREBALL_MULTIPLIER;

        if (m_onFireballActivated != null)
        {
            m_onFireballActivated(m_ball);
        }
    }