public void DoFlowContents(Rect inRect) { if (nextPage != null) { GUIUtility.keyboardControl = 0; if (pageScope != null) { pageScope.Clear(); } if (currentPage != null && currentPage.onPostNavigationHandler != null) { currentPage.onPostNavigationHandler(this); } nextPage.PostNavigation(); currentPage = nextPage; nextPage = null; } if (currentPage != null) { currentPage.DoPageContents(inRect, this); } else { Log.Error("Flow has no page to display!"); } if (!postRenderCallbacks.NullOrEmpty()) { foreach (Action <Flow> a in postRenderCallbacks) { a(this); } postRenderCallbacks.Clear(); } }
public void destroy() { currentPage = nextPage = null; if (pages != null) { pages.Clear(); } if (pageScope != null) { pageScope.Clear(); } if (flowScope != null) { flowScope.Clear(); } if (postRenderCallbacks != null) { postRenderCallbacks.Clear(); } postRenderCallbacks = null; }