示例#1
0
    private IEnumerator DoInitalize()
    {
        LoadingQueue loadQueue = new LoadingQueue(this);

        loadQueue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, $"ef_ui_pointresult_{currentData.eventId:D8}");
        if (loadQueue.IsLoading())
        {
            yield return((object)loadQueue.Wait());
        }
        SetVisibleWidgetEffect(UI.TXT_BANNER, $"ef_ui_pointresult_{currentData.eventId:D8}");
        UIVisibleWidgetEffect visibleWidget = bannerCtrl.GetComponent <UIVisibleWidgetEffect>();

        visibleWidget.SetRendererQueue(4000);
        PlayAudio(AUDIO.TITLE_LOGO);
        ResourceLoad.LoadEventBannerResultTexture(GetCtrl(UI.SPR_LOGO).GetComponent <UITexture>(), (uint)currentData.eventId);
        ResourceLoad.LoadEventBannerResultBGTexture(GetCtrl(UI.SPR_LOGO_BG).GetComponent <UITexture>(), (uint)currentData.eventId);
        TweenAlpha logoBGAlpha = GetCtrl(UI.SPR_LOGO_BG).GetComponent <TweenAlpha>();

        if (logoBGAlpha != null)
        {
            logoBGAlpha.ResetToBeginning();
            logoBGAlpha.PlayForward();
        }
        base.Initialize();
    }