pandemonium_demo_projects/2d/physics_platformer/player/bullet.gd

16 lines
218 B
GDScript

class_name Bullet
extends RigidBody2D
var disabled = false
func _ready():
($Timer as Timer).start()
func disable():
if disabled:
return
($AnimationPlayer as AnimationPlayer).play("shutdown")
disabled = true