blob: 3aee69714ef0c98e1fa68f155bc0f12929dc73b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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()
|