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); }
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); }