Exemple #1
0
    bool ReloadSelectedGun()
    {
        GunObject gun = gunHandler.gun;

        if (gun.reloadSFX != null)
        {
            source.clip = gun.reloadSFX;
            source.time = gun.reloadSFX.length * gunHandler.getReloadStartPoint();
            source.Play();
        }
        return(gunHandler.ReloadGun());
    }