public static bool OnTileCollide(Projectile projectile, Vector2 oldVelocity)
{
foreach (var hook in HookOnTileCollide)
{
if (!hook(projectile, oldVelocity))
{
return false;
}
}
if (projectile.modProjectile != null)
{
return projectile.modProjectile.OnTileCollide(oldVelocity);
}
return true;
}