17 lines
416 B
Plaintext
17 lines
416 B
Plaintext
|
|
extends MapLogic
|
||
|
|
|
||
|
|
var main: Main
|
||
|
|
|
||
|
|
@onready var startMissionButton: ButtonLogicImpulse = $StartMission/ButtonLogicImpulse
|
||
|
|
var spaceshipScene: PackedScene = preload("res://test/spaceship_test.tscn")
|
||
|
|
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
main = get_node("/root/Main")
|
||
|
|
|
||
|
|
startMissionButton.onPressed.connect(startMission)
|
||
|
|
|
||
|
|
func startMission() -> void:
|
||
|
|
if not is_multiplayer_authority(): return
|
||
|
|
main.changeMap.rpc(spaceshipScene)
|