private void RunningAttack(int attackSide) { if (rpgCharacterWeaponController != null) { if (attackSide == 1 && rpgCharacterWeaponController.HasLeftWeapon()) { animator.SetInteger("Action", 1); animator.SetTrigger("AttackTrigger"); } else if (attackSide == 2 && rpgCharacterWeaponController.HasRightWeapon()) { animator.SetInteger("Action", 4); animator.SetTrigger("AttackTrigger"); } else if (attackSide == 3 && rpgCharacterWeaponController.HasDualWeapons()) { animator.SetInteger("Action", 1); animator.SetTrigger("AttackDualTrigger"); } else if (rpgCharacterWeaponController.HasTwoHandedWeapon()) { animator.SetInteger("Action", 1); animator.SetTrigger("AttackTrigger"); } } }
void RunningAttack(int attackSide) { // Debug.Log("RunningAttack"); //If armed and moving, running attacks. if ((weapon == Weapon.ARMED || weapon == Weapon.ARMEDSHIELD) && rpgCharacterInputController.HasMoveInput()) { if (attackSide == 1 && rpgCharacterWeaponController.HasLeftWeapon()) { animator.SetInteger("Action", 1); animator.SetTrigger("AttackTrigger"); } if (attackSide == 2 && rpgCharacterWeaponController.HasRightWeapon()) { animator.SetInteger("Action", 4); animator.SetTrigger("AttackTrigger"); } if (attackSide == 3 && rpgCharacterWeaponController.HasDualWeapons()) { animator.SetInteger("Action", 1); animator.SetTrigger("AttackDualTrigger"); } } }