public override void _Ready() { slots = new SkillButton[TOTAL_SPELLS]; for (int k = 0; k < TOTAL_SPELLS; k++) { SkillButton skill = GetNode <SkillButton>("Skill-" + (k + 1)); Godot.Collections.Array bind = Global.ArrayFrom(k); skill.Connect("pressed", this, nameof(on_SkillActivated), bind); skill.Connect("mouse_entered", this, nameof(on_SkillHovered), bind); skill.Connect("mouse_exited", this, nameof(on_SkillUnHovered), bind); slots[k] = skill; } }