root/3d/thought_bubble/thought_bubble.gd

extends Spatial

onready var animation = $AnimationPlayer

func _ready():
	self.visible = false

func open_with_icon(icon_name):
	var icon = Global.load_icon(icon_name)
	$bubble_maiin/front.texture = icon
	$bubble_maiin/back.texture = icon
	animation.play("open")