blob: e4580c788c7615006a73ba6c3df58e38559ace99 (
plain)
1
2
3
4
5
6
7
8
9
10
|
extends Node2D
var is_opened = false
func _open_level_door(should_open):
if should_open and !is_opened:
is_opened = true
$door_opened.play()
$AnimationPlayer.play("open")
func _ready():
SignalBus.connect("open_level_door",self,"_open_level_door")
|