Пример #1
0
 void TransitionCompleted()
 {
     if (sourceViewDismiss)
     {
         sourceView.ViewDisappeared();
     }
     //if (sourceViewDismiss) sourceView.viewContent.localPosition = Vector3.zero;
     if (targetViewAppear)
     {
         targetView.ViewAppeared();
     }
 }
Пример #2
0
 void TransitionCompleted()
 {
     if (sourceViewDismiss)
     {
         sourceView.ViewDisappeared();
     }
     if (sourceViewDismiss)
     {
         sourceView.viewContent.localPosition = new Vector3(0, sourceView.viewContent.localPosition.y, 0);
     }
     if (targetViewAppear)
     {
         targetView.ViewAppeared();
     }
 }
Пример #3
0
        void Start()
        {
            //initial view presentation and hiding other view
            foreach (UIView view in Views)
            {
                view.ViewWillDissappear();
                view.SetVisible(false);
                view.ViewDisappeared();
            }

            initialView.ViewWillAppear();
            initialView.SetVisible(true);
            initialView.ViewAppeared();

            StartCoroutine(RefreshEventSystem());
        }