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