void OnPopupDisplayCallback() { //TODO :: Setear tambien al Runner como seleccionado default (asi muestra la info de este). _popup.SetCurrency(_gm.User.Currency); foreach (var item in _storeInfoData) { _popup.CheckMinionAvailability(item.Key, GetUserTotalStars() < item.Value.starsNeedToUnlock, IsMinionBought(item.Key)); } }
void UpdatePopupVisualData(bool boughtUpdate = false) { _popup.SetCurrency(_gm.User.Currency); _popup.SetStars(GetUserTotalStars()); foreach (var item in _storeInfoData) { _popup.CheckMinionAvailability(item.Key, GetUserTotalStars() < item.Value.starsNeedToUnlock, IsMinionBought(item.Key)); } if (!boughtUpdate) { _popup.SelectMinionByCode();//this goes after the check minion availability due the the selection feedback on runner. } }