Example #1
0
        public override void OnRecycle()
        {
            base.OnRecycle();

            PrefabPoolManager.Recycle(settings);
            TypePoolManager.RecycleElements(dynamicData);
        }
Example #2
0
        /// <summary>
        /// Internaly used by the pooling system.
        /// </summary>
        public virtual void OnRecycle()
        {
            // Only the AudioItem root should recycle the spatializer as it is shared with it's children
            if (parent == null)
            {
                TypePoolManager.Recycle(ref spatializer);
            }

            TypePoolManager.RecycleElements(delayedOptions);
            ClearEvents();
        }
Example #3
0
 void IPoolable.OnRecycle()
 {
     RemoveAllComponents(false);
     RemoveAllChildren();
     TypePoolManager.RecycleElements(componentGroups);
 }
Example #4
0
 /// <summary>
 /// Internaly used by the pooling system.
 /// </summary>
 public virtual void OnRecycle()
 {
     TypePoolManager.RecycleElements(RTPCs);
     TypePoolManager.RecycleElements(Options);
 }
Example #5
0
        public override void OnRecycle()
        {
            base.OnRecycle();

            TypePoolManager.RecycleElements(Sources);
        }