Esempio n. 1
0
 public List <DReward> GetRewards()
 {
     if (rewards == null)
     {
         rewards = RewardUtils.GetDRewardFromReward(definition.Reward.ToReward());
     }
     return(rewards);
 }
    private void loadRewardIcons(Reward reward, GameObject iconPrefab)
    {
        List <DReward> dRewardFromReward = RewardUtils.GetDRewardFromReward(reward);

        for (int i = 0; i < dRewardFromReward.Count; i++)
        {
            createRewardIcon(dRewardFromReward[i], iconPrefab);
        }
    }