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

16 lines
218 B
GDScript3
Raw Normal View History

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