예제 #1
0
파일: Flow.cs 프로젝트: asky74/RimMod
 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();
     }
 }
예제 #2
0
파일: Flow.cs 프로젝트: asky74/RimMod
 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;
 }