예제 #1
0
        /// <summary>
        /// Returns an element back to the pool.
        /// </summary>
        /// <param name="rEdge"></param>
        public static void Release(ModifyAttribute rInstance)
        {
            if (rInstance == null)
            {
                return;
            }

            rInstance.Clear();
            sPool.Release(rInstance);
        }
예제 #2
0
        /// <summary>
        /// Pulls an object from the pool.
        /// </summary>
        /// <returns></returns>
        public static ModifyAttribute Allocate()
        {
            ModifyAttribute lInstance = sPool.Allocate();

            return(lInstance);
        }
예제 #3
0
 /// <summary>
 /// Releases the effect as an allocation
 /// </summary>
 public override void Release()
 {
     ModifyAttribute.Release(this);
 }