Esempio n. 1
0
    void Update()
    {
        if (isOpen)
        {
            AudioSourceManager.bgmVolume        = bgmSlider.value;
            AudioSourceManager.seVolume         = seSlider.value;
            AudioSourceManager.voiceVolume      = voiceSlider.value;
            AudioSourceManager.ownCharaVolume   = ownCharaSlider.value;
            AudioSourceManager.enemyCharaVolume = enemyCharaSlider.value;
            AudioSourceManager.ChangeVolume();
            PlayerPrefs.SetFloat("BGM", bgmSlider.value);
            PlayerPrefs.SetFloat("SE", bgmSlider.value);
            PlayerPrefs.SetFloat("VOICE", bgmSlider.value);
            PlayerPrefs.SetFloat("OwnCharaSE", bgmSlider.value);
            PlayerPrefs.SetFloat("EnemyCharaSE", bgmSlider.value);

            howToPlayButtonCanvas.enabled = false;
        }
        else
        {
            howToPlayButtonCanvas.enabled = true;
        }
    }