mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 07:20:07 +01:00
10 lines
189 B
GDScript
10 lines
189 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")
|