public void EquipItem(EquippableItem itemToEquip, InvBaseItem.Slot slotPlaced) { Debug.Log("Adding Item..."); playerLightScript = itemToEquip.GetComponentInChildren<Light>(); if (playerLightScript) { Debug.Log("Item was a light."); playerLightTransform = itemToEquip.transform; relativeLightPosition = playerLightTransform.localPosition; lightRotationOffset = playerLightTransform.localRotation; playerLightScript = playerLightTransform.GetComponentInChildren<Light>(); itemCollider = itemToEquip.interactionZone; } switch(handEquip) { case HandEquipStates.left: if(slotPlaced == InvBaseItem.Slot.RightHand) handEquip = HandEquipStates.both; break; case HandEquipStates.right: if(slotPlaced == InvBaseItem.Slot.LeftHand) handEquip = HandEquipStates.both; break; case HandEquipStates.none: if(slotPlaced == InvBaseItem.Slot.LeftHand) handEquip = HandEquipStates.left; if(slotPlaced == InvBaseItem.Slot.RightHand) handEquip = HandEquipStates.right; break; } SetArmLayerWeight(0f, 0f); }