public static async UniTask MainAsync()
        {
            // UI用カメラの作成
            var cameraObject = new GameObject("UICamera");
            var camera       = cameraObject.AddComponent <Camera>();

            Object.DontDestroyOnLoad(cameraObject);
            camera.orthographic     = true;
            camera.orthographicSize = 5;
            camera.cullingMask      = 1 << 5;

            // EventSystemの作成
            var eventSystem = new GameObject("EventSystem");

            eventSystem.AddComponent <EventSystem>();
            eventSystem.AddComponent <StandaloneInputModule>();
            Object.DontDestroyOnLoad(eventSystem);

            // CanvasCustomizerの作成
            var canvasCustomizer = new CanvasCustomizer(camera);

            // 遷移アニメーションの作成
            var transitionAnimator = new TransitionAnimator();

            // Navigatorの作成
            var navigator = new Navigator(null, canvasCustomizer, null, transitionAnimator);

#if UNITY_EDITOR
            await navigator.ActivateInitialSceneOnLaunchAsync();
#endif
        }
    //Timer
    IEnumerator NextLevelTimer()
    {
        TransitionAnimator.SetTrigger("IsEnding");
        yield return(new WaitForSeconds(0.3f));

        SceneManager.LoadScene(SceneToNextLevel);
    }
      override public IEnumerator DoTransition(StringKeyDictionary pInfo)
      {
          IEnumerator doTransition = base.DoTransition(pInfo);

          while (doTransition.MoveNext())
          {
              yield return(doTransition.Current);
          }


          TransitionAnimator.Play(_idleClip, -1, 0.0f);
          TransitionAnimator.speed = 0.0f;
          yield return(null);
      }
 public override IUIViewControllerAnimatedTransitioning GetAnimationControllerForPresentedController(UIViewController presented, UIViewController presenting, UIViewController source)
 {
     _animator = new TransitionAnimator();
     _animator.Presenting = true;
     return _animator;
 }
 public override IUIViewControllerAnimatedTransitioning GetAnimationControllerForDismissedController(UIViewController dismissed)
 {
     _animator = new TransitionAnimator();
     return _animator;
 }
Exemple #6
0
 public override IUIViewControllerAnimatedTransitioning GetAnimationControllerForPresentedController(UIViewController presented, UIViewController presenting, UIViewController source)
 {
     _animator            = new TransitionAnimator();
     _animator.Presenting = true;
     return(_animator);
 }
Exemple #7
0
 public override IUIViewControllerAnimatedTransitioning GetAnimationControllerForDismissedController(UIViewController dismissed)
 {
     _animator = new TransitionAnimator();
     return(_animator);
 }