예제 #1
0
 private void checkRemainingXP()
 {
     if (currentMascotLevel < targetMacotLevel && ProgressionService.GetMascotLevelFromXP(currentMascotLevel) != Service.Get <ProgressionService>().MascotLevel(currentMascotName))
     {
         Reward          rewardForProgressionLevel = RewardUtils.GetRewardForProgressionLevel(Service.Get <ProgressionService>().Level);
         ShowRewardPopup pendingLevelUpPopup       = new ShowRewardPopup.Builder(DRewardPopup.RewardPopupType.levelUp, rewardForProgressionLevel).setMascotName(currentMascotName).Build();
         Service.Get <ProgressionService>().PendingLevelUpPopup = pendingLevelUpPopup;
     }
 }
예제 #2
0
    private void ShowLevelUp(int level)
    {
        Reward          rewardForProgressionLevel = RewardUtils.GetRewardForProgressionLevel(level);
        ShowRewardPopup showRewardPopup           = new ShowRewardPopup.Builder(DRewardPopup.RewardPopupType.levelUp, rewardForProgressionLevel).setMascotName(currentMascotName).Build();

        if (!isLevelUpScreenSuppressed)
        {
            showRewardPopup.Execute();
        }
        else
        {
            Service.Get <ProgressionService>().PendingLevelUpPopup = showRewardPopup;
        }
    }