IEnumerator Reload() { isReloading = true; reloadTimeLeft = reloadTime; playerHUD.SetReloading(true); yield return(new WaitForSeconds(reloadTime)); currentAmmo = maxAmmo; isReloading = false; playerHUD.SetReloading(false); }
IEnumerator Reload() { isReloading = true; reloadTimeLeft = reloadTime; playerHUD.SetReloading(true); yield return(new WaitForSeconds(reloadTime)); currentAmmo = maxAmmo; isReloading = false; playerHUD.SetReloading(false); }