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

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

                spider.DefaultHitEffect.PlayEffect(damage);
                if (damage.KnockBackDistance > 0)
                {
                    spider.SetAction(new SpiderKnockBack(damage));
                }
            }