Exemple #1
0
        private void HandleTwoHandInput()
        {
            if (twoHand_Input)
            {
                twoHandFlag = !twoHandFlag;

                weaponSlotManager.LoadWeaponOnSlot(playerInventory.rightWeapon, WeaponSlotID.RightHandSlot);
                if (!twoHandFlag)
                {
                    weaponSlotManager.LoadWeaponOnSlot(playerInventory.leftWeapon, WeaponSlotID.LeftHandSlot);
                }
            }
        }
Exemple #2
0
        private void Start()
        {
            rightWeapon = weaponsInRightHandSlots[0] == null ? unarmedWeapon : weaponsInRightHandSlots[0];
            leftWeapon  = weaponsInLeftHandSlots[0] == null ? unarmedWeapon : weaponsInLeftHandSlots[0];

            weaponSlotManager.LoadWeaponOnSlot(rightWeapon, WeaponSlotID.RightHandSlot);
            weaponSlotManager.LoadWeaponOnSlot(leftWeapon, WeaponSlotID.LeftHandSlot);
        }