Esempio n. 1
0
    public void SetLoadingProgressInfo(float progress)
    {
        UILoading widget = m_widgetRepositories.FindWidget("UILoading") as UILoading;

        if (widget != null)
        {
            widget.SetLoadingProgressInfo(progress);
        }
    }
Esempio n. 2
0
    public void ShowLoadingWidget(float activeTime = 0.0f, string currentPageName = "", string nextPageName = "")
    {
        UILoading widget = m_widgetRepositories.FindWidget("UILoading") as UILoading;

        if (widget == null)
        {
            widget = m_widgetRepositories.CreateWidget <UILoading>("UI/Prefabs/System/UILoading");
        }

        if (widget != null)
        {
            widget.Show(activeTime);
            widget.SetLoadingPanelInfo(currentPageName, nextPageName);
            widget.SetLoadingProgressInfo(0.0f);
        }
    }