8 lines
174 B
GDScript
8 lines
174 B
GDScript
extends EnemyProjectile
|
|
|
|
func on_impact(collision):
|
|
var c = collision.collider
|
|
if c.has_method("get_type") and c.get_type() == "player":
|
|
Player.health -= 1
|
|
queue_free()
|