13 lines
312 B
GDScript
13 lines
312 B
GDScript
extends Node
|
|
|
|
class_name GameScreen
|
|
|
|
@export var map: Node
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
map.add_child(load(GameManager.currentMapPath).instantiate())
|
|
|
|
func _on_pass_button_pressed() -> void:
|
|
CommandDispatcher.PROCESS_COMMAND.emit(PassCommand.new())
|