private static void ToBattle() { TsAudioBGM.SaveCurrentBGMPlayTime(); if (!Scene.IsCurScene(Scene.Type.BATTLE)) { CommonTasks.GotoBattleReserve(); } }
public override bool _InitAudioEx(TsAudio audioEx) { if (audioEx == null || audioEx.baseData.AudioType != EAudioType.BGM) { return(false); } this._audioEx = (TsAudioBGM)audioEx; return(true); }
public static void InitBGMs() { if (TsAudioBGM.s_currentBGM != null) { TsAudioBGM.s_currentBGM = null; } if (TsAudioBGM.s_nextBGM != null) { TsAudioBGM.s_nextBGM = null; } }
public static TsAudio Create(TsAudio.BaseData baseData) { if (baseData == null) { TsLog.LogError("TsAudioCreator.Create() baseData == null !!!!!", new object[0]); return(null); } TsAudio tsAudio; switch (baseData.AudioType) { case EAudioType.SFX: tsAudio = new TsAudioSFX(baseData.AudioType); break; case EAudioType.BGM: tsAudio = new TsAudioBGM(baseData.AudioType); break; case EAudioType.AMBIENT: tsAudio = new TsAudioAmbient(baseData.AudioType); break; case EAudioType.UI: tsAudio = new TsAudioUI(baseData.AudioType); break; case EAudioType.VOICE: tsAudio = new TsAudioVoice(baseData.AudioType); break; case EAudioType.SYSTEM: tsAudio = new TsAudioSystem(baseData.AudioType); break; case EAudioType.GAME_DRAMA: tsAudio = new TsAudioGameDrama(baseData.AudioType); break; case EAudioType.ENVIRONMENT: tsAudio = new TsAudioEnvironment(baseData.AudioType); break; default: TsLog.Log("Check the EAudioType~! is Invalid Value~! EAudioType= " + baseData.AudioType, new object[0]); return(null); } tsAudio._InitBaseData(baseData); return(tsAudio); }