private void Pop() { NotInheritClass pNotInheritClass = CManagerPooling <NotInheritClass> .instance.DoPop(_pNotInheritClass_Original); pNotInheritClass.strText = listCurrentUsing.Count.ToString(); Debug.Log("Pop " + pNotInheritClass.strText); listCurrentUsing.Add(pNotInheritClass); }
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); } }