private void loadItemIcon(DReward item) { RewardIconRendererFactory rewardIconRendererFactory = new RewardIconRendererFactory(); rewardRenderer = rewardIconRendererFactory.GetRewardIconRenderer(item.Category); rewardRenderer.RenderReward(item, onIconRenderComplete); }
private void loadItemIcon() { IRewardIconRenderer rewardIconRenderer = new RewardIconRendererFactory().GetRewardIconRenderer(rewardCategory); rewardIconRenderer.RenderReward(rewardData, onIconRenderComplete); }