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