private FadeImage fd_out; //フェードアウト // Use this for initialization void Start() { mcrs = MenuConfirmationRestartState.NOT_SELECT; fd_out = GameObject.Find("Panel").GetComponent <FadeImage>(); backgroundTransform = GameObject.Find("black_background_Confirmation").transform; restartTransform = GameObject.Find("Copy of text_window_stage_select").transform; backgroundPosition = backgroundTransform.position; restartPosition = restartTransform.position; menurestartflg = false; rmenurestartflg = false; returnscene = SceneManager.GetActiveScene().name; }
//次の画面処理に行く public void SetNextScene(MenuConfirmationRestartState setnum) { if (menurestartflg == true) { mcrs = setnum; switch (mcrs) { //もう一度同じステージシーンへ行く case MenuConfirmationRestartState.RESTART_OK: fd_out.FadeStart(); break; //メニュー画面へ行く case MenuConfirmationRestartState.BACK_NO: rmenurestartflg = true; ResetPosition(); break; } } }