コード例 #1
0
    /** 弹出积分奖励 */
    void OpenPopIntegralAward()
    {
        AwardCache cache = AwardsCacheManager.getAwardCache(AwardManagerment.AWARDS_LUCKY_CARD);

        if (cache != null)
        {
            Award[] awards = cache.getAwards();
            cache.clear();
            if (awards != null && awards.Length > 0)
            {
                PrizeSample[] prizes = AllAwardViewManagerment.Instance.exchangeAwards(awards);
                bool          isOpen = HeroRoadManagerment.Instance.isOpenHeroRoad(prizes);
                if (isOpen)
                {
                    UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("HeroRoad_open"));
                }
                UiManager.Instance.openDialogWindow <AllAwardViewWindow>((win) => {
                    win.Initialize(prizes, LanguageConfigManager.Instance.getLanguage("s0562"));
                });
            }
        }
    }
コード例 #2
0
    /** 弹出积分奖励 */
    void OpenPopIntegralAward()
    {
        AwardCache cache = null;

        if (luckySample.idsType == "2")
        {
            cache = AwardsCacheManager.getAwardCache(AwardManagerment.AWARDS_LUCKY_CARD);
        }
        else
        {
            return;
        }
        if (cache != null)
        {
            Award[] awards = cache.getAwards();
            cache.clear();
            if (awards != null && awards.Length > 0)
            {
                UiManager.Instance.openDialogWindow <AllAwardViewWindow> ((win) => {
                    win.Initialize(awards, LanguageConfigManager.Instance.getLanguage("s0562"));
                });
            }
        }
    }
コード例 #3
0
    public void clearCacheByType(string type)
    {
        AwardCache cache = AwardsCacheManager.getAwardCache(type);

        cache.clear();
    }