sync
This commit is contained in:
parent
6d75dd22a0
commit
3ca455a5b9
18 changed files with 315 additions and 27 deletions
|
@ -60,3 +60,10 @@ func start_aim():
|
|||
|
||||
func can_shoot(yn):
|
||||
can_damage = yn
|
||||
|
||||
func destroy():
|
||||
var explosion = load("res://explosion.tscn").instantiate()
|
||||
$"/root/Node2D".add_child(explosion)
|
||||
explosion.global_position = global_position
|
||||
await get_tree().create_timer(0.2).timeout
|
||||
queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue