EssenceShared.Entities.Projectiles.EnemyRangeProjectile.Collision C# (CSharp) Method

Collision() public method

public Collision ( Entity other ) : void
other Entity
return 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();
            }
        }
    }