public static void StopBattleSoundtrack() { if (BattleInstanse != null) { BattleInstanse.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT); BattleInstanse.release(); } }
public static void StartBattleSoundtrack(string dungeonName, bool isRoom) { StopBattleSoundtrack(); BattleInstanse = RuntimeManager.CreateInstance("event:/music/mus_battle_" + dungeonName + (isRoom ? "_room" : "_hallway")); if (BattleInstanse != null) { BattleInstanse.start(); } }