Exemple #1
0
 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));
     }
 }
Exemple #2
0
    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.
        }
    }