当前位置: 首页>>代码示例>>C#>>正文


C# UIManager.ProgressAction方法代码示例

本文整理汇总了C#中UIManager.ProgressAction方法的典型用法代码示例。如果您正苦于以下问题:C# UIManager.ProgressAction方法的具体用法?C# UIManager.ProgressAction怎么用?C# UIManager.ProgressAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UIManager的用法示例。


在下文中一共展示了UIManager.ProgressAction方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UICreated

    void UICreated(bool isLoad)
    {
        if (isLoad == false)
        {
            isCanvasLoaded = true;

            // BChance: (2015-12-02) - Re-added chat window.
            obj1 = Instantiate(chatwindowObj);
            obj1.name = obj1.name.Substring(0, (obj1.name.Length - 7));

            obj1 = Instantiate(NPCdialogObj);
            obj1.name = obj1.name.Substring(0, (obj1.name.Length - 7));

            obj1 = Instantiate(CanvasObj);
            obj1.name = obj1.name.Substring(0, (obj1.name.Length - 7));

            obj1 = Instantiate(eventSysObj);
            obj1.name = obj1.name.Substring(0, (obj1.name.Length - 7));

            uimanager = gameObject.GetComponent<UIManager>();

            Panel_Audio = GameObject.Find("AudioPanel");
            Panel_ProgressReport = GameObject.Find("ProgressPanel");
            Panel_Inventory = GameObject.Find("InventoryPanel");
            Panel_Journal = GameObject.Find("JournalPanel");
            Panel_Map = GameObject.Find("MapPanel");

            Debug.Log("Panel_Audio: " + Panel_Audio);
            Debug.Log("Panel_ProgressReport: " + Panel_ProgressReport);
            Debug.Log("Panel_Inventory: " + Panel_Inventory);
            Debug.Log("Panel_Journal: " + Panel_Journal);
            Debug.Log("Panel_Map: " + Panel_Map);

            GameObject.Find("BtnAudio/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.SoundAction(); });
            GameObject.Find("BtnInventroy/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.InventoryAction(); });
            GameObject.Find("BtnJournal/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.JournalAction(); });
            GameObject.Find("BtnProgress/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.ProgressAction(); });
            GameObject.Find("BtnJournalMap/Button Layer").GetComponent<Button>().onClick.AddListener(() => { uimanager.MapAction(); });

            // DWhirle: (May 10, 2016)
            GameObject.Find("ImgRoleIcon").transform.GetChild(GLOBAL.Player.progress["playernum"].i - 1).gameObject.SetActive(true);

            isLoad = true;
            //StartCoroutine(waitForNPC());
        }
        else
        {

        }
        if (GameObject.Find("TopViewCamera") != null)
        {
            Panel_Map = GameObject.Find("TopViewCamera");
            //Panel_Map.SetActive(false);
        }
    }
开发者ID:piter65,项目名称:spilldec,代码行数:55,代码来源:[to_delete]UIManager.cs


注:本文中的UIManager.ProgressAction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。