Early switch scripts working

This commit is contained in:
Derek
2024-10-09 23:22:14 -05:00
parent 3356454d78
commit fc29636ee6
11 changed files with 168 additions and 71 deletions

View File

@@ -75,5 +75,9 @@ func _process(delta):
hit_indicator.play()
enemy_particles.emitting = true
ray.get_collider().hit(bullet_damage)
if ray.get_collider().is_in_group("switch"):
ray.get_collider().hit()
await get_tree().create_timer(1.0).timeout
queue_free()