Пример #1
0
    // 音量調整メソッド
    public void SetVolume(SOUND_TYPE soundType, float volume)
    {
        switch (soundType)
        {
        case SOUND_TYPE.BGM:
            bgmPlayer.SetVolume(volume);
            break;

        case SOUND_TYPE.SE:
            sePlayer.SetVolume(volume);
            break;

        case SOUND_TYPE.VOICE:
            voicePlayer.SetVolume(volume);
            break;
        }
    }