EssenceShared.Entities.Projectiles.EnemyRangeProjectile.Collision C# (CSharp) Méthode

Collision() public méthode

public Collision ( Entity other ) : void
other Entity
Résultat void
        public override void Collision(Entity other) {
            base.Collision(other);

            if (other.Tag == Tags.Player) {
                if (other as Player != null && !AlreadyDamaged.Contains(other)) {
                    (other as Player).Hp.Current -= AttackDamage;
                    AlreadyDamaged.Add(other);
                }
                Remove();
            }
        }
    }