1
Fork 0
mirror of https://github.com/Cookie-CHR/OfficeMadness-LD51.git synced 2024-11-21 22:34:19 +00:00
office-madness/Scripts/M_spawner.gd
2022-10-03 00:44:58 +02:00

27 lines
451 B
GDScript

extends Button
var minigame
var idle = preload("res://Sprites/Caller_idle.png")
var active = preload("res://Sprites/Caller_active.png")
# Called when the node enters the scene tree for the first time.
func _ready():
minigame = null
func on_pressed():
if not minigame == null:
MManager.m_open(self)
func m_choose():
minigame = MManager.m_choose()
func on_finished():
minigame = null
icon = idle
func change_to_active():
icon = active