예제 #1
0
 public void Start()
 {
     equipmentSlotManager = GetComponentInParent <EquipmentSlotManager>();
     characterStats       = GetComponentInParent <CharacterStats>();
     modHandler           = GetComponentInParent <EquipmentModifiersHandler>();
     inventoryHandler     = GetComponentInParent <InventoryHandler>();
 }
예제 #2
0
 private void Start()
 {
     equipmentSlotManager = GetComponentInChildren <EquipmentSlotManager>();
     foreach (InventorySlot itemSlot in equipmentSlotManager.equipedItems)
     {
         if (itemSlot.item != null)
         {
             equipmentSlotManager.LoadEquipmentOnSlot(itemSlot.item, itemSlot.item.slotType);
         }
     }
 }
예제 #3
0
 private void Start()
 {
     equipmentSlotManager = GetComponentInChildren <EquipmentSlotManager>();
     foreach (InventorySlot itemSlot in equipmentSlotManager.equipedItems)
     {
         if (itemSlot.item != null)
         {
             equipmentSlotManager.LoadEquipmentOnSlot(itemSlot.item, itemSlot.item.slotType);
         }
     }
     foreach (SkinnedMeshRenderer skinRenderer in characterEquipment.GetComponentsInChildren <SkinnedMeshRenderer>())
     {
         baseMeshDict.Add(skinRenderer.gameObject.name, skinRenderer.sharedMesh);
         equipmentsMeshDict.Add(skinRenderer.gameObject.name, skinRenderer);
     }
 }
예제 #4
0
 private void Initialize()
 {
     equipmentSlotManager = PlayerManager.instance.GetComponentInChildren <EquipmentSlotManager>();
 }