public void PopLocalInfo() { var r = m_LocalInfoStack.Pop(); if (m_LocalInfoStack.Count > 0) { StoryLocalInfo.Recycle(r); } else { r.Reset(); } }
public static void Recycle(StoryLocalInfo localInfo) { localInfo.Reset(); s_StoryLocalInfoStackPool.Recycle(localInfo); }
public void PushLocalInfo(StoryLocalInfo info) { m_LocalInfoStack.Push(info); }