public void GameplayResult(IGameplayResult _result)
        {
            AnturaGameplayResult result       = _result as AnturaGameplayResult;
            AnturaGameplayInfo   gameplayInfo = result.GameplayInfo as AnturaGameplayInfo;

            Debug.LogFormat("End {0} gameplay result : {1} with {2} star/s.", gameplayInfo.GameId, result.PositiveResult, result.Stars);
        }
Exemple #2
0
        protected virtual void Start()
        {
            // Navigation manager
            NavigationManager.I.CurrentScene = AppScene.MiniGame;

            if (!UseTestGameplayInfo)
            {
                GameplayInfo = AppManager.I.Modules.GameplayModule.ActualGameplayInfo as AnturaGameplayInfo;
            }
            else // manual set on framework for test session
            {
                AppManager.I.Modules.GameplayModule.ActualGameplayInfo = GameplayInfo;
            }
            AppManager.I.OnMinigameStart();
            ReadyForGameplay();
        }
Exemple #3
0
        /// <summary>
        /// Manual implementation for gameplay result.
        /// </summary>
        /// <param name="_stars"></param>
        public void SimulateEndGameplay(int _stars)
        {
            bool positiveResult = false;

            if (_stars > 0)
            {
                positiveResult = true;
            }

            AnturaGameplayInfo gameInfo = AppManager.I.Modules.GameplayModule.ActualGameplayInfo as AnturaGameplayInfo;

            AppManager.I.Modules.GameplayModule.GameplayResult(
                new AnturaGameplayResult()
            {
                GameplayInfo = new AnturaGameplayInfo()
                {
                    GameId = gameInfo.GameId
                },
                Stars          = _stars,
                PositiveResult = positiveResult
            }
                );
        }