public static void PLAY_AUDIO_SCENE(string sound, bool loop, float volume) { CommandGameScenePlayAudio cmd = newCmd(out cmd, false); cmd.mSoundFileName = sound; cmd.mLoop = loop; cmd.mVolume = volume; pushCommand(cmd, mGameSceneManager.getCurScene()); }
public static void AUDIO(SOUND_DEFINE sound, bool loop, float volume) { CommandGameScenePlayAudio cmd = newCmd(out cmd, false); cmd.mSound = sound; cmd.mLoop = loop; cmd.mVolume = volume; pushCommand(cmd, mGameSceneManager.getCurScene()); }
// 通知流程视频准备完毕 public void notifyStartVideoReady() { // 播放视频音乐 CommandGameScenePlayAudio cmdAudio = newCmd(out cmdAudio); cmdAudio.mSound = SOUND_DEFINE.SD_LOGO_VIDEO; cmdAudio.mVolume = mGameConfig.getFloatParam(GAME_DEFINE_FLOAT.GDF_VOLUME); pushCommand(cmdAudio, mGameScene); // 通知场景当前流程准备完毕 mGameScene.notifyProcedurePrepared(); }