void Update() { if (shotCount >= 0) { shotCount -= Time.deltaTime; } if (!isFiring) { //Debug.Log("isn't firing"); return; } if (equippedWeapon == null) { //Debug.Log("no weapon equipped"); return; } if (equippedWeapon.getLoadedAmmo() == 0 && equippedWeapon.getUnloadedAmmo() == 0) { //Debug.Log("no bullets left"); return; } decideReload(); decideShoot(); }