Example #1
0
 /// <summary>
 /// シーン移動アニメーション開始
 /// </summary>
 public void ShowSceneChangeAnimation(Action onFinishedIn)
 {
     if (this.sceneChangeAnimation == null)
     {
         this.sceneChangeAnimation = Instantiate(this.sceneChangeAnimationPrefab, this.sceneChangeAnimationRoot, false);
         this.sceneChangeAnimation.onFinishedIn = onFinishedIn;
     }
     else
     {
         onFinishedIn?.Invoke();
     }
 }
Example #2
0
 /// <summary>
 /// シーン移動アニメーション終了
 /// </summary>
 public void HideSceneChangeAnimation(Action onFinished = null)
 {
     if (this.sceneChangeAnimation != null)
     {
         this.sceneChangeAnimation.SetOut();
         this.sceneChangeAnimation.onFinishedOut = () =>
         {
             Destroy(this.sceneChangeAnimation.gameObject);
             this.sceneChangeAnimation = null;
             onFinished?.Invoke();
         };
     }
 }