Example #1
0
        /// <summary>
        /// Makes the argument objectToMakeUnused marked as unused.  This method is generated to be used
        /// by generated code.  Use Destroy instead when writing custom code so that your code will behave
        /// the same whether your Entity is pooled or not.
        /// </summary>
        public static void MakeUnused(Rabbit3Enemy objectToMakeUnused, bool callDestroy)
        {
            mPool.MakeUnused(objectToMakeUnused);

            if (callDestroy)
            {
                objectToMakeUnused.Destroy();
            }
        }