6 lines
193 B
GDScript
6 lines
193 B
GDScript
class_name Radiation extends "res://scenes/obstacle/obstacle.gd"
|
|
|
|
|
|
func _physics_process(delta: float) -> void:
|
|
for i: Spaceship in $range.get_overlapping_bodies():
|
|
i.applyRadiation(damage)
|