using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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 }); } } } }