Open CCS Cases 2 in doctor scene
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
extends Control
|
||||
|
||||
const SLOT_SCENE := preload("res://scenes/ccs_cases_2/slot_machine.tscn")
|
||||
const DOCTOR_SCENE := preload("res://scenes/ccs_cases_2/doctor_office.tscn")
|
||||
const DESIGN_SIZE := Vector2(1500.0, 800.0)
|
||||
|
||||
@@ -21,19 +20,13 @@ func _ready() -> void:
|
||||
|
||||
|
||||
func on_show(_payload: Variant = null) -> void:
|
||||
_show_slot_machine()
|
||||
_show_doctor_office()
|
||||
|
||||
|
||||
func on_hide() -> void:
|
||||
_clear_active_scene()
|
||||
|
||||
|
||||
func _show_slot_machine() -> void:
|
||||
_set_active_scene(SLOT_SCENE.instantiate(), "slot_machine")
|
||||
if active_scene.has_signal("continue_requested"):
|
||||
active_scene.continue_requested.connect(_show_doctor_office)
|
||||
|
||||
|
||||
func _show_doctor_office() -> void:
|
||||
_set_active_scene(DOCTOR_SCENE.instantiate(), "doctor_office")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user