extends Interaction var nestedGameInstance # Called when the node enters the scene tree for the first time. func _ready(): add_action("Play", play_game) # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): pass func play_game(): get_node("/root/MainGame/CanvasLayer/MessageZone").visible = false get_node("/root/MainGame/CanvasLayer/MenuBar").visible = false get_node("/root/MainGame/CanvasLayer/MinimizeMessageZoneButton").visible = false var nestedGameScene = preload("res://MiniGames/RingToss/ringtoss_scene.tscn") nestedGameInstance = nestedGameScene.instantiate() find_parent("MainGame").add_child(nestedGameInstance) nestedGameInstance.get_node("RTcam").make_current() get_tree().paused = true