2024-12-27 21:00:07 +01:00
|
|
|
extends Node3D
|
|
|
|
|
|
2024-12-31 05:19:57 +01:00
|
|
|
@export var to_: String = "debug1"
|
2024-12-27 21:00:07 +01:00
|
|
|
|
|
|
|
|
func _ready() -> void:
|
2024-12-29 03:07:59 +01:00
|
|
|
pass
|
2024-12-27 21:00:07 +01:00
|
|
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
func _on_area_3d_area_entered(area: Area3D) -> void:
|
2024-12-29 03:07:59 +01:00
|
|
|
if "Player" in area.get_groups():
|
|
|
|
|
print("Player stepped on transition to " + str(to_))
|
|
|
|
|
if not to_:
|
|
|
|
|
print_debug("No scene specified in transition" + str(self))
|
|
|
|
|
print(to_)
|
|
|
|
|
Messagebus.CHANGE_SCENE.emit(to_)
|