コード例 #1
0
    // Use this for initialization
    void Start()
    {
        musicManager           = GameObject.FindObjectOfType <MusicManager>();
        volumeSlider.value     = PlayerprefsManager.GetMasterVolume();
        difficultySlider.value = PlayerprefsManager.GetDifficulty();
        //levelManager = GameObject.FindObjectOfType<LevelManager>();

        Debug.Log(musicManager);

        volumeSlider.value = PlayerprefsManager.GetMasterVolume();
    }
コード例 #2
0
    void Start()
    {
        musicManager = GameObject.FindObjectOfType <MusicManager>();

        volume             = PlayerprefsManager.GetMasterVolume();
        volumeSlider.value = volume;

        difficulty = PlayerprefsManager.GetDifficulty();
        Debug.Log("Diff: " + difficulty.ToString());
        diffSlider.value = difficulty;

        musicManager.SetVolume(volume);
    }