예제 #1
0
 public void Tournamnets_OnChange()
 {
     if (CurrentActiveView.gameObject.activeSelf)
     {
         CurrentActiveView.ShowTournaments();
     }
 }
예제 #2
0
        public virtual void GoToSubView(int viewID, GTEditorSubView context, object param = null)
        {
            if (AllSubViews == null || AllSubViews.Count == 0)
            {
                Helper.LogError("GTEditorView GoToSubView:Error caused by null subview collection");
                return;
            }
            GTEditorSubView view = null;

            if (AllSubViews.TryGetValue(viewID, out view))
            {
                if (context != null)
                {
                    context.OnInActive(view);
                }
                CurrentActiveView = view;
                LastActiveView    = context;
                CurrentActiveView.OnActive(context, param);
            }
        }