Beispiel #1
0
        private void OnClickPlay()
        {
            _soundManager.PlaySound(Enumerators.SoundType.CLICK, Constants.SfxSoundVolume, false, false, true);
            if (GameClient.Get <IDataManager>().CachedUserLocalData.Tutorial)
            {
                _uiManager.GetPage <GameplayPage>().CurrentDeckId = 0;

                GameClient.Get <IMatchManager>().FindMatch(Enumerators.MatchType.LOCAL);
            }
            else
            {
                _stateManager.ChangeAppState(Enumerators.AppState.DECK_SELECTION);
            }
        }
        private void SceneForAppStateWasLoadedEventHandler(Enumerators.AppState state)
        {
            switch (state)
            {
            case Enumerators.AppState.GAMEPLAY:
            {
                ForceStartGameplay(_gameplayManager.IsTutorial);
            }
            break;

            case Enumerators.AppState.APP_INIT:
            {
                _appStateManager.ChangeAppState(_finishMatchAppState);
            }
            break;
            }
        }
 private void CollectionButtonOnClickHandler()
 {
     _soundManager.PlaySound(Enumerators.SoundType.CLICK, Constants.SfxSoundVolume, false, false, true);
     _appStateManager.ChangeAppState(Enumerators.AppState.COLLECTION);
 }