示例#1
0
 public void Init(LevelCompleteEventArgs levelCompleteEventArgs)
 {
     SetStarCount(levelCompleteEventArgs.CompleteData.StarAmount);
     _scoreText.text = string.Format(GameConstants.LevelData.SCORE_FORMAT, levelCompleteEventArgs.CompleteData.Score);
     _levelText.text = string.Format(GameConstants.LevelData.LEVEL_FORMAT, levelCompleteEventArgs.CompleteData.LeveNumber);
     AddCompletedBlockGoals(levelCompleteEventArgs.BlockGoalsList);
 }
示例#2
0
    private void OnLevelComplete(LevelCompleteEventArgs args)
    {
        display.SetActive(true);

        rewardedAdsButton.OnAdFinished += () =>
        {
            Debug.Log($"Ad watched. Player has earned {args.currencyReward} more scales.");
            GameManager.Instance.CurrencyCount += args.currencyReward;
            SceneManager.LoadScene(SceneNames.HOME_SCENE);
        };

        StartCoroutine(RewardTextUpdate(args.currencyReward));
        StartCoroutine(ContinueTextUpdate());
    }
 public void Init(LevelCompleteEventArgs levelCompleteEventArgs)
 {
     _levelCompletedView.Init(levelCompleteEventArgs);
 }