Beispiel #1
0
        static public void Cleanup()
        {
#if UNITY_EDITOR
            Debug.Log("CustomDataStruct Cleanup!");
#endif
            BetterDelegate.Cleanup();
            BetterStringBuilder.Cleanup();
            ValueObject.Cleanup();
            ObjPoolBase.Cleanup();
#if UNITY_EDITOR
            MemoryLeakDetecter.Cleanup();
#endif
        }
Beispiel #2
0
            public static DelegateAction Get()
            {
                lock (pool)
                {
#if UNITY_EDITOR
                    detecter.IncreseInstance();
#endif
                    if (pool.Count > 0)
                    {
                        return(pool.Dequeue());
                    }
                }
                DelegateAction instance = new DelegateAction();
                BetterDelegate.Add(instance);
                return(instance);
            }