1
Fork 0
mirror of https://github.com/Cookie-CHR/OfficeMadness-LD51.git synced 2024-11-23 15:14:18 +00:00
office-madness/Scripts/M_spawner.gd

28 lines
451 B
GDScript3
Raw Permalink Normal View History

2022-10-02 22:44:58 +00:00
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