Ejemplo n.º 1
0
        public override void OnRecycle()
        {
            base.OnRecycle();

            PrefabPoolManager.Recycle(settings);
            TypePoolManager.RecycleElements(dynamicData);
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
0
 void IPoolable.OnRecycle()
 {
     RemoveAllComponents(false);
     RemoveAllChildren();
     TypePoolManager.RecycleElements(componentGroups);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Internaly used by the pooling system.
 /// </summary>
 public virtual void OnRecycle()
 {
     TypePoolManager.RecycleElements(RTPCs);
     TypePoolManager.RecycleElements(Options);
 }
Ejemplo n.º 5
0
        public override void OnRecycle()
        {
            base.OnRecycle();

            TypePoolManager.RecycleElements(Sources);
        }