/// <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); }
public void transitionSceen(string loadedScene, TransitionAnimationType animType) { SceneManager.LoadScene(loadedScene); }