예제 #1
0
        public override AttackResponse Damage(HealthV2.Attack attack)
        {
            if (projectileData == null)
            {
                return(new AttackResponse(0, AttackResponse.HitResult.None));
            }

            HitData hitData = new HitData()
            {
                damageAmount = attack.Damage,
                attack       = attack,
                self         = gameObject
            };

            projectileData.Hit(hitData);
            return(new AttackResponse(attack));
        }
예제 #2
0
        //[SerializeField] public AttackProps attackProps;

        public virtual AttackResponse Damage(HealthV2.Attack attack)
        {
            return(new AttackResponse(attack));
        }