Files
puzzle-quest/assets/props/parchment/parchment.gd
T

18 lines
302 B
GDScript
Raw Normal View History

tool
extends Spatial
export(bool) var paper
func activatePaper(showPaper):
if Engine.editor_hint:
paper = showPaper
var parent = get_node(".").name
print("[Parchment] Editor value " +String(showPaper) +" | " +String(parent))
$paper.set_visible(paper)
func _ready():
activatePaper(paper)