void AttemptAttack() { nextAttack = Time.time + attackRate; if (gunMaster.isGunLoaded) { Debug.Log("Shooting"); gunMaster.CallEventPlayerInput(); } else { gunMaster.CallEventGunNotUsable(); } }
void AttemptAttack() { nextAttack = Time.time + attackRate; if (gunMaster.isGunLoaded) { gunAnimation.FireWeapon(); Debug.Log("Shooting"); gunMaster.CallEventPlayerInput(); isShooting = true; } else { gunMaster.CallEventGunNotUsable(); isShooting = false; } }