예제 #1
0
 public void RemoveEffect(EffectObject effectObject)
 {
     if (mEffectList.Remove(effectObject))
     {
         effectObject.Dispose();
     }
 }
예제 #2
0
        public EffectObject PlayEffect(string effectName, float duration, Transform parent, Vector3 pos, Quaternion rotate)
        {
            EffectObject tmpEffectObj = Game.PoolMgr.GetObjectPool <EffectObject>().Spawn();

            tmpEffectObj.Init(effectName, duration, parent, pos, rotate);
            tmpEffectObj.Play();
            mEffectList.Add(tmpEffectObj);

            return(tmpEffectObj);
        }