public void PopRuntime() { var runtime = m_RuntimeStack.Pop(); if (m_RuntimeStack.Count > 0) { StoryRuntime.Recycle(runtime); } else { runtime.Reset(); } }
public void PopRuntime() { var runtime = m_RuntimeStack.Pop(); if (m_RuntimeStack.Count > 0) { var newRuntime = m_RuntimeStack.Peek(); newRuntime.IsBreak = runtime.IsBreak; newRuntime.IsContinue = runtime.IsContinue; newRuntime.IsReturn = runtime.IsReturn; StoryRuntime.Recycle(runtime); } else { runtime.Reset(); } }
public void PushRuntime(StoryRuntime runtime) { m_RuntimeStack.Push(runtime); }
public static void Recycle(StoryRuntime runtime) { runtime.Reset(); s_StoryRuntimePool.Recycle(runtime); }