// サウンド読み込みメソッド public void Load(SOUND_TYPE soundType, string fileName) { switch (soundType) { case SOUND_TYPE.BGM: bgmPlayer.Load(fileName); break; case SOUND_TYPE.SE: sePlayer.Load(fileName); break; case SOUND_TYPE.VOICE: voicePlayer.Load(fileName); break; } }