public void Attach(Slot slot, Attachment attachment) { int slotIndex = slot.Order(); if (Attachments[slotIndex] != null) { Attachments[slotIndex].OnDestroy(); } Attachments[slotIndex] = attachment; }