Пример #1
0
        private void OnBeginTransition(GameType gameType, SceneName sceneName)
        {
            switch (sceneName)
            {
            case SceneName.Title:
                _levelView.Hide();
                break;

            case SceneName.Main:
                if (gameType == GameType.ScoreAttack)
                {
                    _stepCountView.TweenCenter();
                }
                break;

            case SceneName.Ranking:
                _levelView.ShowClear();
                _stepCountView.TweenCenter();
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(sceneName), sceneName, null);
            }
        }