Ejemplo n.º 1
0
 public void Start()
 {
     equipmentSlotManager = GetComponentInParent <EquipmentSlotManager>();
     characterStats       = GetComponentInParent <CharacterStats>();
     modHandler           = GetComponentInParent <EquipmentModifiersHandler>();
     inventoryHandler     = GetComponentInParent <InventoryHandler>();
 }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 4
0
 private void Initialize()
 {
     equipmentSlotManager = PlayerManager.instance.GetComponentInChildren <EquipmentSlotManager>();
 }