hch
2025-11-26 b4f99f038d5570cbc21941455e93f68d219a075c
0312 增加部分基础音效 音乐
8个文件已修改
35 ■■■■ 已修改文件
Main/System/Battle/BaseBattleWin.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/TianziBillboradBattleWin.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/KnapSack/Logic/CommonGetItemWin.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Main/HomeWin.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/NewBieGuidance/NewBieWin.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Settlement/BattleSettlementManager.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Sound/SoundPlayer.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/SystemSetting/SystemSetting.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BaseBattleWin.cs
@@ -49,6 +49,8 @@
                UIManager.Instance.CloseWindow<EquipExchangeWin>();
            }
        }
        PlayBackGroundMusic();
    }
    protected override void OnPreClose()
@@ -66,6 +68,7 @@
        {
            battleField.OnRoundChange -= OnRoundChange;
        }
        SoundPlayer.Instance.StopBackGroundMusic();
    }
    protected override void OnClose()
@@ -78,6 +81,7 @@
        }
        battleField = null;
    }
    /// <summary>
    /// 通用刷新逻辑 (模板方法)
@@ -285,4 +289,10 @@
        }
    }
    protected virtual void PlayBackGroundMusic()
    {
        SoundPlayer.Instance.PlayBackGroundMusic(39);
    }
}
Main/System/Battle/TianziBillboradBattleWin.cs
@@ -285,4 +285,9 @@
        return teamHeroes;
    }
    protected override void PlayBackGroundMusic()
    {
        SoundPlayer.Instance.PlayBackGroundMusic(40);
    }
}
Main/System/KnapSack/Logic/CommonGetItemWin.cs
@@ -14,6 +14,7 @@
        ItemLogicUtility.Instance.OnGetItemShowEvent += OnGetItemShowEvent;
        scroller.OnRefreshCell += OnRefreshCell;
        CreateScroller();
        SoundPlayer.Instance.PlayUIAudio(20);
    }
Main/System/Main/HomeWin.cs
@@ -171,6 +171,9 @@
        // var battleWin = UIManager.Instance.OpenWindow<BattleWin>();
        // battleWin.SetBattleField(BattleManager.Instance.storyBattleField);
        if (!SoundPlayer.Instance.IsPlayBackGroundMuisic())
            SoundPlayer.Instance.PlayBackGroundMusic(38);
    }
Main/System/NewBieGuidance/NewBieWin.cs
@@ -198,6 +198,7 @@
            m_GuideTalkRect.SetActive(false);
            DisplayGuide();
        }
        //PlayNewBieAudio 不会被ui音效打断
        SoundPlayer.Instance.PlayUIAudio(stepConfig.voice);
    }
Main/System/Settlement/BattleSettlementManager.cs
@@ -90,6 +90,8 @@
                }
                break;
        }
        SoundPlayer.Instance.PlayUIAudio(57);
    }
    //"Msg":{"itemInfo":[{"ItemID":5,"Count":2},{"ItemID":3,"Count":40}],"winFaction":1,"statInfo":{"1":{"1":{"1":{"NPCID":0,"DefHurt":727,"CureHP":0,"AtkHurt":1891,"ObjID":1,"HeroID":530004},"3":{"NPCID":0,"DefHurt":483,"CureHP":1511,"AtkHurt":782,"ObjID":6,"HeroID":520001},"2":{"NPCID":0,"DefHurt":953,"CureHP":0,"AtkHurt":1712,"ObjID":5,"HeroID":510003}}},"2":{"1":{"1":{"NPCID":10101091,"DefHurt":638,"CureHP":0,"AtkHurt":140,"ObjID":2,"HeroID":610001},"3":{"NPCID":10101092,"DefHurt":625,"CureHP":0,"AtkHurt":126,"ObjID":3,"HeroID":610001},"5":{"NPCID":10101093,"DefHurt":3122,"CureHP":0,"AtkHurt":1897,"ObjID":4,"HeroID":510003}}}}}
Main/System/Sound/SoundPlayer.cs
@@ -161,6 +161,11 @@
        StartCoroutine(Co_BackGroundMusicFadeOut());
    }
    public bool IsPlayBackGroundMuisic()
    {
        return m_MusicAudioSource.isPlaying;
    }
    public void UnLoadMusic(int _exclude)
    {
        if (AssetSource.isUseAssetBundle && DeviceUtility.IsLowMemory())
Main/System/SystemSetting/SystemSetting.cs
@@ -11,8 +11,8 @@
{
    const string QUALITY_LEVEL_KEY = "GameQualityLevel";
    const string SOUND_VOLUME_KEY = "SoundRatioKey";  //音乐
    const string SOUND_EFFECT_KEY = "SoundEffect"; //音效
    const string SOUND_VOLUME_KEY = "MusicKey";  //音乐
    const string SOUND_EFFECT_KEY = "SoundEffectKey"; //音效
    const string GAMEFRAME_KEY = "GameFrameSetting";//垂直同步率
    public Dictionary<SystemSwitch, bool> systemSettings = new Dictionary<SystemSwitch, bool>();
@@ -42,7 +42,7 @@
    public float GetSoundVolume()
    {
        return LocalSave.GetFloat(SOUND_VOLUME_KEY, 1.0f);
        return LocalSave.GetFloat(SOUND_VOLUME_KEY, 0.3f);
    }
    public void SetSoundEffect(float value)
@@ -52,7 +52,7 @@
    public float GetSoundEffect()
    {
        return LocalSave.GetFloat(SOUND_EFFECT_KEY, 1.0f);
        return LocalSave.GetFloat(SOUND_EFFECT_KEY, 0.6f);
    }
    public void SetGameFps(GameFps _frame)