コード例 #1
0
ファイル: GameManager.cs プロジェクト: tomfalempin/Exemples
        protected void LevelManager_OnWin()
        {
            _isInGame = false;
            levelManager.ChangePause(false);
            if (enableLogsGameManager)
            {
                Debug.Log("Win");
            }


            WinScreen lInstance = WinScreen.Instance;

            if (IsInDailyQuest)
            {
                if (enableLogsGameManager)
                {
                    Debug.Log("daily");
                }
                WinScreen.Instance.InitInfos(10000f / time, time);
            }
            else if (_isInFTUE)
            {
                if (enableLogsGameManager)
                {
                    Debug.Log("FTUE");
                }
                lInstance.InitInfos(CurrenciesGain);
                PlayerDatas.AfterTutosGift(Credentials.id);
            }
            else
            {
                if (enableLogsGameManager)
                {
                    Debug.Log("normal");
                }
                lInstance.InitInfos(CurrenciesGain, selectedSquads, WorldIndex, LevelIndex);
            }
            uiManager.AddScreenWithoutCloseAnimation(lInstance);

            _isInFTUE       = false;
            _isInDailyQuest = false;
            PlayerDatas.ChangeSoftCurrency(CurrenciesGain);
            SoundManager.Instance.PlaySFX(settings.JingleWinName);
        }