25 lines
383 B
GDScript
25 lines
383 B
GDScript
extends EInteractionItem
|
|
|
|
|
|
class_name Door
|
|
@export var map_id:String
|
|
@export var map_born_pos:int=0
|
|
|
|
func E_pressed():
|
|
if Global.main_scene!=null and is_instance_valid(Global.main_scene):
|
|
Global.main_scene.change_map(map_id,map_born_pos)
|
|
|
|
|
|
pass
|
|
|
|
func _on_highlight():
|
|
$Sprite2D2.modulate=Color.GREEN
|
|
|
|
pass
|
|
|
|
func _exit_highlight():
|
|
$Sprite2D2.modulate=Color.WHITE
|
|
|
|
|
|
pass
|