hch
2025-09-11 aa72688fbfcba5cf8d90a7b34700bbe1f9ebee12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using UnityEngine;
 
public class EffectMgr 
{
 
    //玩家是否主动屏蔽了特效
    public static bool IsNotShowBySetting(int id)
    {
        var config = EffectConfig.Get(id);
        if (config == null)
        {
#if UNITY_EDITOR
            if (id != 0)
                Debug.LogError("特效配置表中没有找到id为" + id + "的特效");
#endif
            return true;
        }
        bool isNotShow = LocalSave.GetBool("IsNotShowBroadEffect", false);
        if (config.notShow == 1 && isNotShow)
            return true;
 
        return false;
    }
 
}