Ejemplo n.º 1
0
    IEnumerator Reload()
    {
        isReloading    = true;
        reloadTimeLeft = reloadTime;
        playerHUD.SetReloading(true);
        yield return(new WaitForSeconds(reloadTime));

        currentAmmo = maxAmmo;
        isReloading = false;
        playerHUD.SetReloading(false);
    }