public class HeatSource : Component {
public static bool IsWarm(Scene scene, Vector3 position) {
foreach (var heat in scene.GetAllComponents<HeatSource>()) {
if (heat.WorldPosition.Distance(position) < 130)
return true;
}
return false;
}
protected override void DrawGizmos() {
Gizmo.Draw.Color = Color.Orange;
Gizmo.Draw.LineSphere(0, 130);
base.DrawGizmos();
}
}