Ejemplo n.º 1
0
            public override void OnHit(Wound wound)
            {
                goblin.RunTimeData.Health        -= wound.Damage;
                goblin.RunTimeData.VertigoConter += wound.Vertigo;

                if (wound.KnockBackDistance > 0)
                {
                    goblin.SetAction(new GoblinHurt(wound));
                }
            }
Ejemplo n.º 2
0
            public override void OnHit(DamageData damage)
            {
                goblin.RunTimeData.Health        -= damage.Damage;
                goblin.RunTimeData.VertigoConter += damage.Vertigo;

                goblin.DefaultHitEffect.PlayEffect(damage);
                if (damage.KnockBackDistance > 0)
                {
                    goblin.SetAction(new GoblinKnockBack(damage));
                }
            }