SlimeoosOdyssey/godot/slime_kill_box.gd

8 lines
123 B
GDScript

extends Area3D
func _on_body_entered(body):
if "color_changes" in body:
body.queue_free()
$AudioStreamPlayer.play()