16 lines
201 B
GDScript
16 lines
201 B
GDScript
|
|
extends RigidBody2D
|
|
|
|
# Member variables
|
|
var disabled = false
|
|
|
|
|
|
func disable():
|
|
if (disabled):
|
|
return
|
|
get_node("anim").play("shutdown")
|
|
disabled = true
|
|
|
|
|
|
func _ready():
|
|
get_node("Timer").start()
|