Exemplo n.º 1
0
        // Init Animate State
        void HandleNodeEliminate(OnNodeEliminate e)
        {
            var oldHpRecover = currentHPRecover;

            currentHPRecover += e.Info.HPRecover;
            if (oldHpRecover != currentHPRecover)
            {
                recoverAnim.Play();
            }
            UpdateLeftText();
        }
Exemplo n.º 2
0
        void HandleNodeEliminate(OnNodeEliminate e)
        {
            stats.CurrentAtk   += e.Info.Atk;
            stats.CurrentMana  += e.Info.Mana;
            ExtraRoundDuration += e.Info.EnergyTime;
            stats.CurrentDef   += e.Info.Def;
            stats.CurrentHP    += e.Info.HPRecover;
            stats.CurrentCombo += 1;

            //TODO:
            // var factor = 1f + (float)stats.CurrentCombo * comboFactor;
            // DomainEvents.Raise<OnComboFactorChange>(new OnComboFactorChange(factor));
            // stats.CurrentAtk = stats.CurrentAtk + Mathf.RoundToInt((float)e.Info.Atk * factor);
        }