hch
2025-07-25 f2615b34cd739dae4dd635b4ef3c5d71d87b9802
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using UnityEngine;
 
public class EffectMgr : SingletonMonobehaviour<EffectMgr>
{
 
 
    //玩家是否主动屏蔽了特效
    public 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;
    }
 
 
 
    // public void RecyleUIEffect(int id, GameObject _effectObj)
    // {
    //     EffectConfig effectCfg = EffectConfig.Get(id);
 
    //     if (null == effectCfg)
    //     {
    //         return;
    //     }
 
    //     var _prefab = ResManager.Instance.LoadAsset<GameObject>("UIEffect/" + effectCfg.packageName, effectCfg.fxName);
    //     if (_prefab == null)
    //     {
    //         return;
    //     }
 
    //     GameObjectPoolManager.GameObjectPool _pool = GameObjectPoolManager.Instance.RequestPool(_prefab);
    //     if (_pool != null)
    //     {
    //         _pool.Release(_effectObj);
    //     }
    // }
}