/// <summary> /// 获取EffectEmitter /// </summary> public EffectEmitter GetEffectEmitter(string effectPrefab, int maxCount = 5) { EffectEmitter kResult; if (!mEmitterTemplateMap.TryGetValue(effectPrefab, out kResult)) { kResult = new EffectEmitter(effectPrefab, maxCount); mEmitterTemplateMap.Add(effectPrefab, kResult); } return(kResult); }
public BindEffectInfo(string effect_path, DBBuffSev.BindPos bind_pos, bool follow_target, float scale, int maxCount) { mEffectResPath = effect_path; if (!string.IsNullOrEmpty(mEffectResPath)) { mEmitter = EffectManager.GetInstance().GetEffectEmitter(mEffectResPath, maxCount); } BindPos = bind_pos; FollowTarget = follow_target; mScale = scale; MaxCount = maxCount; }