Inheritance: HandleBase
 // Use this for initialization
 void Start()
 {
     isPaused = false;
     pauseMenu.SetActive(false);
     soundMenu.SetActive(false);
     toPauseText.SetActive(true);
     master         = FMODUnity.RuntimeManager.GetBus("bus:/Master");
     Time.timeScale = 1f;
 }
    public void MusicBtn()
    {
        Slider Musicslider;

        Musicslider = GameObject.Find("MusicVolume").GetComponent <UnityEngine.UI.Slider>();
        PlayerPrefs.SetFloat("Music", Musicslider.value);
        masterBus = FMODUnity.RuntimeManager.GetBus(masterBusString);
        masterBus.setVolume(PlayerPrefs.GetFloat("Music"));
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        Master = FMODUnity.RuntimeManager.GetBus("Bus:/");
        Music  = FMODUnity.RuntimeManager.GetBus("Bus:/Music");
        SFX    = FMODUnity.RuntimeManager.GetBus("Bus:/SFX");

        SfxEvent = FMODUnity.RuntimeManager.CreateInstance(m_sfxVolumeTest);

        InitSlider();
    }
Beispiel #4
0
    private void Awake()
    {
        MasterBus   = FMODUnity.RuntimeManager.GetBus("bus:/Master");
        MusicBus    = FMODUnity.RuntimeManager.GetBus("bus:/Master/Music");
        DialogueBus = FMODUnity.RuntimeManager.GetBus("bus:/Master/Dialogue");
        SFXBus      = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX");

        SFXVolumeTestEvent      = FMODUnity.RuntimeManager.CreateInstance("event:/SFX/RightClickScrollThroughWords");
        DialogueVolumeTestEvent = FMODUnity.RuntimeManager.CreateInstance("event:/Dialogue/BathroomAttendant/RepeatForint");
    }
Beispiel #5
0
    private void Awake()     // Init
    {
        Master = FMODUnity.RuntimeManager.GetBus("bus:/Master");
        Music  = FMODUnity.RuntimeManager.GetBus("bus:/Master/MX");
        SFX    = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX");
        UI     = FMODUnity.RuntimeManager.GetBus("bus:/Master/UI");

        SFXVolumeEvent = FMODUnity.RuntimeManager.CreateInstance("event:/DOG/DOG_Jump");
        UIVolumeEvent  = FMODUnity.RuntimeManager.CreateInstance("event:/MENU/Hover");
    }
Beispiel #6
0
    void Awake()
    {
        DontDestroyOnLoad(this.gameObject);

        Master = FMODUnity.RuntimeManager.GetBus("bus:/Master");
        Music  = FMODUnity.RuntimeManager.GetBus("bus:/Master/Music");
        SFX    = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX");

        SFXVolumeTest = FMODUnity.RuntimeManager.CreateInstance("event:/Test/Test Sound Effect");
    }
Beispiel #7
0
    private void Start()
    {
        float value = SaveManager.LoadSetting("SoundEffectVolume");

        fillImage.fillAmount = value;
        text.text            = (fillImage.fillAmount * 100).ToString("000") + "%";

        sfxBus = FMODUnity.RuntimeManager.GetBus("bus:/SFX");
        sfxBus.setVolume(value);
    }
Beispiel #8
0
    private void Start()
    {
        float value = SaveManager.LoadSetting("MusicVolume");

        fillImage.fillAmount = value;
        text.text            = (fillImage.fillAmount * 100).ToString("000") + "%";

        musicBus = FMODUnity.RuntimeManager.GetBus("bus:/MUSIC");
        musicBus.setVolume(value);
    }
Beispiel #9
0
 void Start()
 {
     musicBus = FMODUnity.RuntimeManager.GetBus("bus:/MUSIC");
     musicBus.setVolume(SaveManager.LoadSetting("MusicVolume"));
     sfxBus = FMODUnity.RuntimeManager.GetBus("bus:/SFX");
     sfxBus.setVolume(SaveManager.LoadSetting("SoundEffectVolume"));
     QualitySettings.SetQualityLevel((int)SaveManager.LoadSetting("Quality"), true);
     DontDestroyOnLoad(gameObject);
     SceneManager.sceneLoaded += SceneLoaded;
     PlayerPrefs.SetInt("ThreatLevel", 0);
 }
Beispiel #10
0
    private void Start()
    {
        MasterSlider.value = Settings.MasterVolume;
        MusicSlider.value  = Settings.MusicVolume;
        SFXSlider.value    = Settings.SFXVolume;

        Master = FMODUnity.RuntimeManager.GetBus("bus:/Master");
        Master.setVolume(Settings.MasterVolume);
        Music = FMODUnity.RuntimeManager.GetBus("bus:/Master/Music");
        Music.setVolume(Settings.MusicVolume);
        SFX = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX");
        SFX.setVolume(Settings.SFXVolume);
    }
Beispiel #11
0
    private void Start()
    {
        MasterBus    = FMODUnity.RuntimeManager.GetBus("Bus:/");
        audiomanager = GameObject.Find("AudioManager");

        if (audiomanager != null)
        {
            pauseMenuFMODHandler = audiomanager.GetComponent <UIFMODEventsScript>();
        }
        else
        {
            Debug.LogWarning("Audio manager is not active. Please active it to enable audio and FMOD events.");
        }
    }
Beispiel #12
0
 // Start is called before the first frame update
 void Start()
 {
     masterBus = FMODUnity.RuntimeManager.GetBus("bus:/");
     breathEventDescription = FMODUnity.RuntimeManager.GetEventDescription(breathEvent);
     breathEventDescription.getParameterDescriptionByName("OxygenValue", out pARAMETEROxygenDescription);
     pARAMETEROxygenId     = pARAMETEROxygenDescription.id;
     wrenchInstance        = FMODUnity.RuntimeManager.CreateInstance(wrenchEvent);
     openDoorInstance      = FMODUnity.RuntimeManager.CreateInstance(openDoorEvent);
     pickUpInstance        = FMODUnity.RuntimeManager.CreateInstance(pickUpEvent);
     useItemInstance       = FMODUnity.RuntimeManager.CreateInstance(useItemEvent);
     weatherChangeInstance = FMODUnity.RuntimeManager.CreateInstance(weatherChangeEvent);
     breathInstance        = FMODUnity.RuntimeManager.CreateInstance(breathEvent);
     masterBus.setVolume(0.4f);
 }
Beispiel #13
0
    public override void _RespondToConfirm(int retVal, string retString)
    {
        switch (retVal)
        {
        case 0:                 // yes, want to leave without saving settings
            onClick(previous);
            FMOD.Studio.Bus bus = FMODUnity.RuntimeManager.GetBus("bus:/");
            bus.setVolume(GameManager.settings.volume);
            break;

        default:                    // canceled, do nothing
            break;
        }
    }
Beispiel #14
0
    public void GetInstances()
    {
        //busses
        titleBus = FMODUnity.RuntimeManager.GetBus("bus:/Title");
        stepBus  = FMODUnity.RuntimeManager.GetBus("bus:/Walking");

        //events
        menuMusicEvent = FMODUnity.RuntimeManager.CreateInstance("event:/MenuMusic");
        startGameEvent = FMODUnity.RuntimeManager.CreateInstance("event:/StartGameUI");
        ambienceEvent  = FMODUnity.RuntimeManager.CreateInstance("event:/Ambience");
        playerSteps    = FMODUnity.RuntimeManager.CreateInstance("event:/PlayerSteps");
        winMusic       = FMODUnity.RuntimeManager.CreateInstance("event:/Win music");
        instructOpen   = FMODUnity.RuntimeManager.CreateInstance("event:/instructOpen");
        instructClose  = FMODUnity.RuntimeManager.CreateInstance("event:/instruct close");
    }
Beispiel #15
0
    public void MusicVolume()
    {
        analog.enabled = false;
        activeMenu     = ActiveMenu.Music;

        fillImage.gameObject.SetActive(true);
        text.gameObject.SetActive(true);

        float value = SaveManager.LoadSetting("MusicVolume");

        fillImage.fillAmount = value;
        text.text            = (fillImage.fillAmount * 100).ToString("000") + "%";

        musicBus = FMODUnity.RuntimeManager.GetBus("bus:/MyMaster/MUSIC");
        musicBus.setVolume(value);
    }
    FMOD.RESULT result;                                                         // Use result checking while testing

    void Start()
    {
        // Get the corresponding bus
        musicBus = FMODUnity.RuntimeManager.GetBus(musicBusPath);
        // Fader level is the sounds output volume level
        musicBus.getFaderLevel(out musicVolume);
        // Assign initial music level to slider
        musicSlider.value = musicVolume;

        sfxBus = FMODUnity.RuntimeManager.GetBus(sfxBusPath);
        sfxBus.getFaderLevel(out sfxVolume);
        sfxSlider.value = sfxVolume;

        masterBus = FMODUnity.RuntimeManager.GetBus(masterBusPath);
        masterBus.getFaderLevel(out masterVolume);
        masterSlider.value = masterVolume;
    }
Beispiel #17
0
    private void Awake()
    {
        Master = FMODUnity.RuntimeManager.GetBus("bus:/Master");
        _slider.OnValueChange += ValueChange;

        if (PlayerPrefs.HasKey("VolumeMaster"))
        {
            _slider.SetState((int)PlayerPrefs.GetFloat("VolumeMaster"), 0, 100, 10);
        }
        else
        {
            _slider.SetState(100, 0, 100, 10);
            PlayerPrefs.SetFloat("VolumeMaster", 100f);
        }

        Master.setVolume(_slider.Value / 100f);
    }
    //--------------------------------------------------------------------------------------------------------//

    private void Start()
    {
        //... these look for the bus channels in the FMod mixer, the pathways need to be exact.
        //... Pathways should be located in the FMod Bus window,
        //... right click on the bus you want and copy the path name and add it.

        // Main Masters
        _musicMaster = FMODUnity.RuntimeManager.GetBus("bus:/Music");
        _sfxMaster   = FMODUnity.RuntimeManager.GetBus("bus:/SFX");

        // Environment
        _ambianceMaster    = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Environment/Ambience");
        _iceFreezeMaster   = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Environment/IceFreeze");
        _iceMeltMaster     = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Environment/IceMelt");
        _waterFreezeMaster = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Environment/WaterFreeze");
        _waterSplashMaster = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Environment/WaterSplash");


        // Objects
        _batRamBoomMaster      = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/BatRamBoom");
        _gemActiveMaster       = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/Gems");
        _icecubeDestroyMaster  = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/IcecubeDestroy");
        _plantGrowMaster       = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/PlantGrowing");
        _platformMoveMaster    = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/PlatformMoving");
        _portalActivatedMaster = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/PortalActivated");
        _pressurePlateMaster   = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/PressurePlate");
        _ropeBurnSnapMaster    = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/RopeBurnSnap");
        _ropeSwingMaster       = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/RopeSwing");
        _ropeTwistMaster       = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/RopeTwist");
        _slidingMaster         = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/Sliding");
        _stoneNoisesMaster     = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/StoneNoises");
        _teleportPlayersMaster = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/TeleportPlayers");
        _timerMaster           = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/Timer");
        _trampolineMaster      = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Objects/Trampoline");


        // Players SFX
        // Footsteps
        _footstepsAndLandingsMaster = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Players/Footsteps & Jump Landings");
        _jumpGruntsMaster           = FMODUnity.RuntimeManager.GetBus("bus:/SFX/Players/JumpGrunts");

        // UI
        _buttonHighlightMaster = FMODUnity.RuntimeManager.GetBus("bus:/SFX/UI/ButtonHighlight");
        _buttonSelectedMaster  = FMODUnity.RuntimeManager.GetBus("bus:/SFX/UI/ButtonSelected");
    }
Beispiel #19
0
    // Use this for initialization
    void Start()
    {
        master        = FMODUnity.RuntimeManager.GetBus("bus:/Master");
        music         = FMODUnity.RuntimeManager.GetBus("bus:/Master/Music");
        SFX           = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX");
        chopperSFX    = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX/Chopper");
        notChopperSFX = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX/NotChopper");

        SFXTest        = FMODUnity.RuntimeManager.CreateInstance("event:/Missions/MissionObjectiveComplete");
        MusicTest      = FMODUnity.RuntimeManager.CreateInstance("event:/Music/MenuSong");
        ChopperSFXTest = FMODUnity.RuntimeManager.CreateInstance("event:/Chopper/Accelerate");

        FMODUnity.RuntimeManager.AttachInstanceToGameObject(SFXTest, GetComponent <Transform>(), GetComponent <Rigidbody>());
        FMODUnity.RuntimeManager.AttachInstanceToGameObject(MusicTest, GetComponent <Transform>(), GetComponent <Rigidbody>());
        FMODUnity.RuntimeManager.AttachInstanceToGameObject(ChopperSFXTest, GetComponent <Transform>(), GetComponent <Rigidbody>());

        InitializeVolumeLevels();
    }
    // Start is called before the first frame update
    void Start()
    {
        SFXBus    = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX");
        MusicBus  = FMODUnity.RuntimeManager.GetBus("bus:/Master/Music");
        MasterBus = FMODUnity.RuntimeManager.GetBus("bus:/Master");

        for (int i = 0; i < MusicEventNames.Length; i++)
        {
            FMOD.Studio.EventInstance temp = FMODUnity.RuntimeManager.CreateInstance(MusicEventNames[i]);
            MusicEventInstances.Add(temp);
        }

        for (int i = 0; i < SFXEventNames.Length; i++)
        {
            FMOD.Studio.EventInstance temp = FMODUnity.RuntimeManager.CreateInstance(SFXEventNames[i]);
            SFXEventInstances.Add(temp);
        }
    }
Beispiel #21
0
    // Start is called before the first frame update
    void Start()
    {
        MasterBus      = FMODUnity.RuntimeManager.GetBus("Bus:/");
        vitoriaEmitter = null;
        GameObject go = GameObject.Find("vitoria");

        if (go != null)
        {
            vitoriaEmitter = go.GetComponent <StudioEventEmitter>();
        }
        ambientacaoEmitter = null;
        go = GameObject.Find("ambiencia");
        if (go != null)
        {
            ambientacaoEmitter = go.GetComponent <StudioEventEmitter>();
        }
        AlreadyEnded = false;
        this.gameObject.SetActive(false);
    }
    public void Awake()
    {
        resolutions = Screen.resolutions;
        LoadResolutions();

        music        = FMODUnity.RuntimeManager.GetBus("bus:/MUSIC");
        soundEffects = FMODUnity.RuntimeManager.GetBus("bus:/SoundEffects");

        fullScreenToggle.isOn = Screen.fullScreen;

        music.getVolume(out musicVolume);
        music.getVolume(out soundsVolume);
        musicVolumeSlider.value  = musicVolume;
        soundsVolumeSlider.value = soundsVolume;

        resDropdown.onValueChanged.AddListener(delegate { CheckResolutionDropdown(); });
        fullScreenToggle.onValueChanged.AddListener(delegate { CheckFullscreenToggle(); });
        musicVolumeSlider.onValueChanged.AddListener(delegate { CheckVolumeSlider(); });
        soundsVolumeSlider.onValueChanged.AddListener(delegate { CheckVolumeSlider(); });
    }
Beispiel #23
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
         return;
     }
     DontDestroyOnLoad(gameObject);
     instance = this;
     FMODUnity.RuntimeManager.LoadBank(musicBank);
     currentMusicIndex = 0;
     MasterVolume      = 1f;
     MusicVolume       = .5f;
     SFXVolume         = .5f;
     Music             = FMODUnity.RuntimeManager.GetBus("bus:/MASTER/MUS");
     SFX    = FMODUnity.RuntimeManager.GetBus("bus:/MASTER/SFX");
     Master = FMODUnity.RuntimeManager.GetBus("bus:/MASTER");
     Music.setVolume(MusicVolume);
     SFX.setVolume(SFXVolume);
     Master.setVolume(MasterVolume);
 }
Beispiel #24
0
    void Start()
    {
        MusicBus = FMODUnity.RuntimeManager.GetBus("bus:/General/Music");
        SFXBus   = FMODUnity.RuntimeManager.GetBus("bus:/General/FX");

        menu   = FMODUnity.RuntimeManager.CreateInstance(menuTheme);
        africa = FMODUnity.RuntimeManager.CreateInstance(themeAfrica);
        asian  = FMODUnity.RuntimeManager.CreateInstance(themeAsian);
        white  = FMODUnity.RuntimeManager.CreateInstance(themeWhite);
        arabic = FMODUnity.RuntimeManager.CreateInstance(themeArabic);
        boss   = FMODUnity.RuntimeManager.CreateInstance(themeBoss);
        p      = FMODUnity.RuntimeManager.CreateInstance(paused);
        lr     = FMODUnity.RuntimeManager.CreateInstance(lowReverb);
        mr     = FMODUnity.RuntimeManager.CreateInstance(midReverb);
        hr     = FMODUnity.RuntimeManager.CreateInstance(highReverb);


        playsound    = FMODUnity.RuntimeManager.CreateInstance(play);
        selectsound  = FMODUnity.RuntimeManager.CreateInstance(select);
        nomoneysound = FMODUnity.RuntimeManager.CreateInstance(nomoney);
    }
Beispiel #25
0
    /// <summary>
    /// Finds and sets all Manager variables,
    /// DOES NOT INIT THE VARIABLES THEMSELVES SO DONT RUN START() DEPENDENT CODE HERE
    /// </summary>
    void Init()
    {
        GetComponentInChildren <Canvas>(true).gameObject.SetActive(true);

        camera      = FindObjectOfType <CameraController>();
        player      = FindObjectOfType <Player>();
        dialogue    = GetComponentInChildren <DialogueHandler>(true);
        fadeHandler = GetComponentInChildren <FadeHandler>(true);
        fadeHandler.gameObject.SetActive(true);
        menuHandler = GetComponentInChildren <MenuHandler>(true);
        menuHandler.Init();
        menuHandler.InstaClose();
        inMenu        = false;
        startDialogue = FindObjectOfType <DialogueTriggerSceneStart>();

        player.disableInput = true;

        musicBus = FMODUnity.RuntimeManager.GetBus("bus:/Music");
        soundBus = FMODUnity.RuntimeManager.GetBus("bus:/Sound");

        inMenuPauseInstance = FMODUnity.RuntimeManager.CreateInstance("snapshot:/InMenu");
    }
    private void Start()
    {
        //Debug.Log("MasterVol Pref " + PlayerPrefs.GetFloat("MasterVol"));
        //Debug.Log("MusicVol Pref " + PlayerPrefs.GetFloat("MusicVol"));
        //Debug.Log("SoundsVol Pref " + PlayerPrefs.GetFloat("SoundsVol"));

        MasterBus = RuntimeManager.GetBus("bus:/Master");
        MusicBus  = RuntimeManager.GetBus("bus:/Master/Music");
        SoundsBus = RuntimeManager.GetBus("bus:/Master/Sounds");

        MasterBusVol = PlayerPrefs.GetFloat("MasterVol");
        MusicBusVol  = PlayerPrefs.GetFloat("MusicVol");
        SoundsBusVol = PlayerPrefs.GetFloat("SoundsVol");
        mute         = PlayerPrefs.GetString("IsMuted") == "True" ? true : false;

        if (mute)
        {
            MasterBus.setMute(mute);
            MusicBus.setMute(mute);
            SoundsBus.setMute(mute);
        }

        soundsVolTest = "event:/UI/UI_MenuSelection";
    }
Beispiel #27
0
    private void Start()
    {
        masterBus    = FMODUnity.RuntimeManager.GetBus("bus:/Master");
        musicBus     = FMODUnity.RuntimeManager.GetBus("bus:/Master/Music");
        sfxBus       = FMODUnity.RuntimeManager.GetBus("bus:/Master/SFX");
        uiBus        = FMODUnity.RuntimeManager.GetBus("bus:/Master/UI");
        soundManager = GameObject.Find("Main Camera").GetComponent <SoundManager>();

        if (gameStart == false)
        {
            gameStart = true;
        }

        if (GameObject.FindGameObjectWithTag("Player") != null)
        {
            player       = GameObject.FindGameObjectWithTag("Player");
            playerHealth = GameObject.FindGameObjectWithTag("Player").GetComponent <Health>();
        }
        playerExit       = GameObject.Find("PlayerExitSpot");
        exitSpot         = (playerExit.transform.position - player.transform.position);
        playerEnable     = false;
        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked;
    }
Beispiel #28
0
    // Start is called before the first frame update

    void Awake()
    {
        Music = FMODUnity.RuntimeManager.GetBus("bus:/Music");
        SFX   = FMODUnity.RuntimeManager.GetBus("bus:/SFX");
    }
 void OnDestroy()
 {
     FMOD.Studio.Bus playerBus = FMODUnity.RuntimeManager.GetBus("bus:/player");
     playerBus.stopAllEvents(FMOD.Studio.STOP_MODE.IMMEDIATE);
     raiseSpearSound.release();
 }
Beispiel #30
0
 public void PlayAgain()
 {
     FMOD.Studio.Bus playerBus = FMODUnity.RuntimeManager.GetBus("Bus:/");
     playerBus.stopAllEvents(FMOD.Studio.STOP_MODE.IMMEDIATE);
     SceneManager.LoadScene("ToyToy", LoadSceneMode.Single);
 }
        public RESULT getBusByID(Guid guid, out Bus bus)
        {
            bus = null;

            IntPtr newPtr = new IntPtr();
			RESULT result = FMOD_Studio_System_GetBusByID(rawPtr, guid.ToByteArray(), out newPtr);
            if (result != RESULT.OK)
            {
                return result;
            }

            bus = new Bus(newPtr);
            return result;
        }
        public RESULT getBus(string path, out Bus bus)
        {
            bus = null;

            IntPtr newPtr = new IntPtr();
            RESULT result = FMOD_Studio_System_GetBus(rawPtr, Encoding.UTF8.GetBytes(path + Char.MinValue), out newPtr);
            if (result != RESULT.OK)
            {
                return result;
            }

            bus = new Bus(newPtr);
            return result;
        }
        public RESULT getBusList(out Bus[] array)
        {
            array = null;

            RESULT result;
            int capacity;
            result = FMOD_Studio_Bank_GetBusCount(rawPtr, out capacity);
            if (result != RESULT.OK)
            {
                return result;
            }
            if (capacity == 0)
            {
                array = new Bus[0];
                return result;
            }

            IntPtr[] rawArray = new IntPtr[capacity];
            int actualCount;
            result = FMOD_Studio_Bank_GetBusList(rawPtr, rawArray, capacity, out actualCount);
            if (result != RESULT.OK)
            {
                return result;
            }
            if (actualCount > capacity) // More items added since we queried just now?
            {
                actualCount = capacity;
            }
            array = new Bus[actualCount];
            for (int i=0; i<actualCount; ++i)
            {
                array[i] = new Bus(rawArray[i]);
            }
            return RESULT.OK;
        }
    private void Start()
    {
        Statici.inGioco = false;
        me = this;
        CambiaAlphaPannelloSfondo();
        nomeScenaText.gameObject.SetActive(false);
        Statici.assegnaAssetDatabase();
        cameraT = Camera.main.transform;
        datiPersonaggio = new Serializzabile<ValoriPersonaggioS>(Statici.NomeFilePersonaggio);
        for (int i = 0; i < Statici.databaseInizialeProprieta.matriceProprieta.Count; i++)
        {
            if (!Statici.databaseInizialeProprieta.matriceProprieta[i].giocabile)
                continue;
            string tmpNomeModelloM = Statici.databaseInizialeProprieta.matriceProprieta[i].nomeM;
            string tmpNomeModelloF = Statici.databaseInizialeProprieta.matriceProprieta[i].nomeF;
            dizionarioCollegamentoNomiConModelli.Add(tmpNomeModelloM, Instantiate(Resources.Load(tmpNomeModelloM), GameObject.Find("postazione" + contatoreGiocabili).transform.FindChild("posizioneM").position, new Quaternion(0f, 180f, 0f, 0f)) as GameObject);
            dizionarioCollegamentoNomiConModelli.Add(tmpNomeModelloF, Instantiate(Resources.Load(tmpNomeModelloF), GameObject.Find("postazione" + contatoreGiocabili).transform.FindChild("posizioneF").position, Quaternion.identity) as GameObject);
            dizionarioPosizioniPrecedenti.Add(dizionarioCollegamentoNomiConModelli[tmpNomeModelloM].name, GameObject.Find("postazione" + contatoreGiocabili).transform.FindChild("posizioneM"));
            dizionarioPosizioniPrecedenti.Add(dizionarioCollegamentoNomiConModelli[tmpNomeModelloF].name, GameObject.Find("postazione" + contatoreGiocabili).transform.FindChild("posizioneF"));
            contatoreGiocabili += 1;
        }
        Statici.CopiaIlDB();
        DirectoryInfo dI = new DirectoryInfo(Application.persistentDataPath);
        DirectoryInfo[] dirs = dI.GetDirectories();
        for (int i = 0; i < dirs.Length; i++)
        {
            cartelleLocali.Add(dirs[i].Name);
        }

        SFXBus = FMODUnity.RuntimeManager.GetBus("bus:/SFX");
        EnviromentBus = FMODUnity.RuntimeManager.GetBus("bus:/Environment");

        datiAudio = new Serializzabile<ClasseAudio>(Statici.NomeFileAudio, true);
        if (!datiAudio.Dati.inizializzato)
        {
            SFXBus.getFaderLevel(out datiAudio.Dati.volSFX);
            EnviromentBus.getFaderLevel(out datiAudio.Dati.volEnvironment);
            datiAudio.Dati.inizializzato = true;
            datiAudio.Salva();
        }
        else
        {
            SFXBus.setFaderLevel(datiAudio.Dati.volSFX);
            EnviromentBus.setFaderLevel(datiAudio.Dati.volEnvironment);
        }

        volumiAmbiente.value = datiAudio.Dati.volEnvironment;
        volumiSFX.value = datiAudio.Dati.volSFX;
    }