Example #1
0
    public void RetryScene()
    {
        selectBack = false;
        string sceneName = SceneManager.GetActiveScene().name;

        Resume();
        onButton = true;
        StartCoroutine(SingletonMonoBehaviour <ScreenShot> .Instance.SceneChangeShot());
        SceneManager.LoadScene(sceneName);
        Debug.Log("りとらい");
        Pauser.Clear();
    }
Example #2
0
        /// <summary>
        /// シーン遷移する
        /// TODO: cancellationToken
        /// </summary>
        public static async UniTaskVoid MoveAsync(Scenes scene)
        {
            if (isSceneChanging)
            {
                return;
            }
            isSceneChanging = true;
            Pauser.Clear();
            await ScreenFader.FadeOutAsync(FadeTime);

            await SceneManager.LoadSceneAsync((int)scene);

            await ScreenFader.FadeInAsync(FadeTime);

            isSceneChanging = false;
        }