SlimeoosOdyssey/godot/slime_kill_box.gd

8 lines
123 B
GDScript3
Raw Normal View History

2023-08-20 15:00:54 -06:00
extends Area3D
func _on_body_entered(body):
if "color_changes" in body:
body.queue_free()
$AudioStreamPlayer.play()