public void OpenDamageCollider() { if (playerManager.isUsingRightHand) { if (playerManager.isDealingLightAttack) { rightHandDamageCollider.currentWeaponDamage = playerInventory.rightWeapon.baseDamage; rightHandDamageCollider.EnableDamageCollider(); } else if (playerManager.isDealingHeavyAttack) { rightHandDamageCollider.currentWeaponDamage += Mathf.RoundToInt(playerInventory.rightWeapon.baseDamage * 0.5f); rightHandDamageCollider.EnableDamageCollider(); } } else if (playerManager.isUsingLeftHand) { leftHandDamageCollider.EnableDamageCollider(); } }
public void OpenDamageCollider() { if (enemyManager.isUsingWeapon) { rightHandDamageCollider.EnableDamageCollider(); } else { if (enemyManager.isUsingRightHand) { bodypartCollider_2.EnableDamageCollider(); } else if (enemyManager.isUsingLeftHand) { bodypartCollider_1.EnableDamageCollider(); } } }