public void SwitchScene(string sceneName, Action <SceneRepresentative> passData = null) { this.passDataToNewScene = passData; this.loadingScene = sceneName; OnShutterClose = () => { StartCoroutine(LoadSceneCoroutine(sceneName)); }; StartCoroutine(CloseShutterCoroutine()); }
public void SwitchToPlayScene(Level level, Chart chart, Action <PlayResult> onPlayResult, Action <SceneRepresentative> passData = null) { this.passDataToNewScene = passData; this.loadingScene = SceneNames.playScene; this.onPlayResult = onPlayResult; OnShutterClose = () => { StartCoroutine(LoadSceneCoroutine(SceneNames.playScene)); }; SetInfo(level, chart); StartCoroutine(CloseShutterCoroutine(true)); }