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; } }