bullet.gd 175 B

123456789
  1. extends RigidBody2D
  2. func _on_bullet_body_enter( body ):
  3. if body.has_method("hit_by_bullet"):
  4. body.call("hit_by_bullet")
  5. func _on_Timer_timeout():
  6. $anim.play("shutdown")