コード例 #1
0
    /// <summary> 탑메뉴에 들어갈 이름 </summary>
    public void SetTopMenuTitleName(uint commonLowDataId)
    {
        if (TopMenu == null)
        {
            string     path    = "UIObject/TopMenuObject";
            GameObject topMenu = Instantiate(ResourceMgr.LoadUI(path)) as GameObject;

            topMenu.name = "TopMenu";
            TopMenu      = topMenu.GetComponent <TopMenuObject>();
            TopMenu.Initialize(uiSystemObj.transform);
        }

        TopMenu.SetTitleName(commonLowDataId);
    }
コード例 #2
0
    /// <summary>
    /// 탑메뉴 생성 or 열기
    /// </summary>
    public void OpenTopMenu(UIBasePanel basePanel)
    {
        if (TopMenu == null)
        {
            string     path    = "UIObject/TopMenuObject";
            GameObject topMenu = Instantiate(ResourceMgr.LoadUI(path)) as GameObject;

            topMenu.name = "TopMenu";
            TopMenu      = topMenu.GetComponent <TopMenuObject>();
            TopMenu.Initialize(uiSystemObj.transform);
        }

        TopMenu.ShowTopMenu(basePanel);
    }