示例#1
0
        private void Pop()
        {
            NotInheritClass pNotInheritClass = CManagerPooling <NotInheritClass> .instance.DoPop(_pNotInheritClass_Original);

            pNotInheritClass.strText = listCurrentUsing.Count.ToString();
            Debug.Log("Pop " + pNotInheritClass.strText);

            listCurrentUsing.Add(pNotInheritClass);
        }
示例#2
0
        private void Push()
        {
            if (listCurrentUsing.Count != 0)
            {
                NotInheritClass pReturn = listCurrentUsing[listCurrentUsing.Count - 1];
                Debug.Log("Push " + pReturn.strText);

                listCurrentUsing.RemoveAt(listCurrentUsing.Count - 1);
                CManagerPooling <NotInheritClass> .instance.DoPush(pReturn);
            }
        }