generated from SGDA/GodotExampleProject
feat: wrong building scene
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
extends Node2D
|
||||
|
||||
@export_file("*.tscn") var wrong_building: String
|
||||
@export_file("*.tscn") var next_level: String
|
||||
|
||||
@export var base_mode: GUIDEMappingContext
|
||||
|
||||
|
||||
@ -14,4 +17,8 @@ func _process(delta: float) -> void:
|
||||
|
||||
|
||||
func _on_door_event_triggered(event_id: String) -> void:
|
||||
print(event_id)
|
||||
if event_id == "right":
|
||||
SceneLoader.load_scene(next_level)
|
||||
return
|
||||
|
||||
SceneLoader.load_scene(wrong_building)
|
||||
|
Reference in New Issue
Block a user