public void Release(GameObject instance)
 {
     if (_pool != null)
     {
         _pool.Release(instance);
     }
 }
Beispiel #2
0
            public bool Virtualize()
            {
                if (!IsRealized || CurContent == null)
                {
                    return(false);
                }

                CurContent.SendMessage(VirtualizeMessage, SendMessageOptions.DontRequireReceiver);

                Pool.Release(CurContent);

                CurContent = null;
                IsRealized = false;

                return(true);
            }