mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 16:30:06 +01:00
9 lines
175 B
GDScript
9 lines
175 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():
|
|
$anim.play("shutdown")
|