Exemplo n.º 1
0
    /// <summary>
    /// シーンを遷移させる
    /// </summary>
    public void TransitionScene(TransitionAnimationType endAnim, float animTime)
    {
        //遷移時のアニメーションがあるか
        if (endAnim != TransitionAnimationType.NONE)
        {
            GameObject animationScreen = GameObject.Find("ScreenEffectPanel");
            if (animationScreen == null)
            {
                GameObject screenEffectPanel = ( GameObject )Resources.Load("Prefabs/ScreenEffectPanel");
                animationScreen = Instantiate(screenEffectPanel);
            }
            animationScreen.GetComponent <ScreenAnimations>().executeAnimation(endAnim.ToString());
        }

        Invoke("load", animTime);
    }
Exemplo n.º 2
0
 public void transitionSceen(string loadedScene, TransitionAnimationType animType)
 {
     SceneManager.LoadScene(loadedScene);
 }