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 bonusList = ItemUtil.CreateItemDataList(bonusInfos); ViewManager.Show(new object[] { bonusList, onSuccess }); } } public static void TryShowBonusList(List bonusList, Action onSuccess = null) { if (bonusList != null && bonusList.Count > 0) { ViewManager.Show(new object[] { bonusList, onSuccess }); } } } }