16 lines
374 B
Plaintext
16 lines
374 B
Plaintext
|
|
extends MapLogic
|
||
|
|
|
||
|
|
var main: Main
|
||
|
|
|
||
|
|
@onready var startMissionButton: ButtonLogicImpulse = $StartMission/ButtonLogicImpulse
|
||
|
|
var spaceshipScene: PackedScene = preload("res://Maps/Spaceship/Spaceship.tscn")
|
||
|
|
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
main = get_node("/root/Main")
|
||
|
|
|
||
|
|
startMissionButton.onPressed.connect(startMission)
|
||
|
|
|
||
|
|
func startMission() -> void:
|
||
|
|
main.changeMap(spaceshipScene)
|