public void SenceChange(Player.Character_Sence Next_Scene) { if (Next_Scene == Player.Character_Sence.NEXT_GAMEMAIN) { SceneManager.LoadScene("main"); } else if (Next_Scene == Player.Character_Sence.NEXT_GAMETITLE) { SceneManager.LoadScene("Title_Scene"); } }
// フェードイン処理 public void Draw_LoadNow_FadeIn(Player.Character_Sence Next_Scene) { float Load_Now_Max_Position = -1920.0f; if (load_now_rect.anchoredPosition.x >= Load_Now_Max_Position) { load_now_rect.anchoredPosition += new Vector2(-1000 * Time.deltaTime, 0); } else { player.getSence(Next_Scene); } }
// フェードアウト処理 public void Draw_LoadNow_FadeOut(Player.Character_Sence Next_Scene) { float Load_Now_Min_Position = 0.0f; if (load_now_rect.anchoredPosition.x <= Load_Now_Min_Position) { load_now_rect.anchoredPosition -= new Vector2(-1000 * Time.deltaTime, 0); } else { player.getSence(Next_Scene); SenceChange(Next_Scene); } }