1 2 3 4 5 6 7 8 9 10 11 12
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")