public static WithinNoSpawn ( Vector3 point ) : bool | ||
point | Vector3 | |
return | bool |
public static bool WithinNoSpawn(Vector3 point)
{
bool within = false;
foreach(NoEnemySpawn s in GameHandler.Instance().noSpawns)
{
if(s.IsWithin(point))
{
within = true;
break;
}
}
return within;
}