public static PreAI ( Projectile projectile ) : bool | ||
projectile | Projectile | |
return | bool |
public static bool PreAI(Projectile projectile)
{
foreach (var hook in HookPreAI)
{
if (!hook(projectile))
{
return false;
}
}
if (projectile.modProjectile != null)
{
return projectile.modProjectile.PreAI();
}
return true;
}