mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
16 lines
218 B
GDScript3
16 lines
218 B
GDScript3
|
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
|