123456789101112131415161718192021222324 |
- using System;
- using System.Collections.Generic;
- namespace GFGGame
- {
- public class BonusController
- {
- public static void TryShowBonusList(int[][] bonusInfos, Action onSuccess = null)
- {
- if (bonusInfos != null && bonusInfos.Length > 0)
- {
- List<ItemData> bonusList = ItemUtil.CreateItemDataList(bonusInfos);
- ViewManager.Show<RewardView>(new object[] { bonusList, onSuccess });
- }
- }
- public static void TryShowBonusList(List<ItemData> bonusList, Action onSuccess = null)
- {
- if (bonusList != null && bonusList.Count > 0)
- {
- ViewManager.Show<RewardView>(new object[] { bonusList, onSuccess });
- }
- }
- }
- }
|