2019-11-18 18:16:46 +01:00
|
|
|
extends StaticBody
|
|
|
|
|
|
|
|
export(int) var key_id
|
|
|
|
|
2019-12-14 21:05:09 +01:00
|
|
|
onready var outline = get_node("KeyMesh/Outline") as MeshInstance
|
|
|
|
|
2019-11-18 18:16:46 +01:00
|
|
|
|
|
|
|
func do_interact(var player):
|
2019-12-14 21:05:09 +01:00
|
|
|
# TODO: move to global inventory
|
2019-11-18 18:16:46 +01:00
|
|
|
player.key_chain.append(key_id)
|
2019-12-14 21:05:09 +01:00
|
|
|
queue_free()
|