예제 #1
0
        /// <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);
        }
예제 #2
0
 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;
 }