Exemplo n.º 1
0
        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();
            }
        }