private void OnWorldSelected(WorldButton button) { SceneGlobalState.WorldScrollOffset = ScrollOffset; var transition = new LevelSelectController.TransitionData(button.World); TransitionManager.TransferToLevelSelect(transition); }
private void Win() { Debug.Assert(_starsLeft.Count == 0); UnregisterGetStar(); UserLevelClear.Win(_levelDef); var nextLevel = _levelDef.Next(); if (nextLevel.HasValue) { TransitionManager.TransferToLevel(nextLevel.Value); } else { TransitionManager.TransferToLevelSelect(new LevelSelectController.TransitionData(_levelDef.World)); } }
void OnEscapeKeyDown() { var transition = new LevelSelectController.TransitionData(_levelDef.World); TransitionManager.TransferToLevelSelect(transition); }