EvilCocoGame1/globals.gd

36 lines
745 B
GDScript3
Raw Permalink Normal View History

2025-01-11 00:25:52 +01:00
extends Node
@export var evil_coco: SpineSprite = null;
@onready var current_choices: Dictionary = {
"head": null,
"face": null,
"neck": null,
"chest": null,
"legs": null,
"shoes": null,
}
enum SkinChoices {
HEAD,
FACE,
NECK,
CHEST,
LEGS,
SHOES
}
func populate():
if evil_coco:
for key in current_choices:
var slot: SpineSlot = evil_coco.get_skeleton().find_slot(key)
var attachments = slot.get_attachment()
#
#var slot: SpineSlot = self.get_skeleton().find_slot("glasses")
#var attch: SpineAttachment = self.get_skeleton().get_attachment_by_slot_name("glasses", "nv_device")
#slot.set_attachment(attch)
#print(k)
func get_next_choice(choice: SkinChoices) -> String:
return ""