mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
9 lines
188 B
GDScript
9 lines
188 B
GDScript
extends RigidBody2D
|
|
|
|
func _on_bullet_body_enter( body ):
|
|
if (body.has_method("hit_by_bullet")):
|
|
body.call("hit_by_bullet")
|
|
|
|
func _on_Timer_timeout():
|
|
get_node("anim").play("shutdown")
|