コード例 #1
0
ファイル: MainMenuMono.cs プロジェクト: Vick-edit/PongGame
        private void Awake()
        {
            _userPrefsController = DependencyResolver.GetCachedUserPrefsControllerl();

            currentSceneIndex = gameObject.scene.buildIndex;
            SceneManager.LoadSceneAsync(_soundScene, LoadSceneMode.Additive);
        }
コード例 #2
0
ファイル: GameManagerMono.cs プロジェクト: Vick-edit/PongGame
        private void Awake()
        {
            _currentScore = 0;
            _scoreToText.SetScore(_currentScore);

            _userPrefsController = DependencyResolver.GetCachedUserPrefsControllerl();
            _userPrefs           = _userPrefsController.GetUserPrefs();

            this.WeakSubscribe <GameManagerMono, GameManagementEvent>(gm => gm.OnGameEvent);
        }