Exemplo n.º 1
0
    public IEnumerator Reload()
    {
        isReloading = true;
        Weapon.GetComponent <Animation> ().Play("reloadAnim");
        source.Stop();
        source.PlayOneShot(reloadSound);
        yield return(new WaitForSeconds(3f));

        bulletsUI.ShowAllBullets();
        bulletsLeft = MAX_BULLETS;
        isReloading = false;
    }