9 lines
260 B
GDScript
9 lines
260 B
GDScript
extends CharacterBody3D
|
|
|
|
func _ready() -> void:
|
|
add_to_group("player")
|
|
if GameState.returning_from_dungeon:
|
|
GameState.restore_player(self)
|
|
global_position = GameState.portal_position + Vector3(0, 1, -5)
|
|
GameState.returning_from_dungeon = false
|