Example #1
0
 public void EnableEffectPool()
 {
     if (this._effectPool == null)
     {
         this._effectPool = new EffectPool();
         this._effectPool.SetInitialInstanceCount(1);
     }
 }
Example #2
0
 public void DisableEffectPool()
 {
     if (this._effectPool != null)
     {
         this._effectPool.CleanAll(true);
         this._effectPool = null;
     }
 }