コード例 #1
0
    public void ShowDeconstruction()
    {
        frameScroll.SetActive(false);

        GameObject objSubView = Instantiate(Resources.Load("UI/Lobby/SubViewDeconstruction")) as GameObject;

        objSubView.name = "SubViewDeconstruction";
        objSubView.transform.SetParent(FrameSubView.transform);
        objSubView.GetComponent <RectTransform>().anchoredPosition = Vector2.zero;
        SubViewDeconstruction s_deconstruction = objSubView.GetComponent <SubViewDeconstruction>();

        if (selectedMenu == menu_type.SERVANT)
        {
            s_deconstruction.SetDeconstructionType(DECONSTRUCTION_TYPE.SERVANT);
        }
        else if (selectedMenu == menu_type.MONSTER)
        {
            s_deconstruction.SetDeconstructionType(DECONSTRUCTION_TYPE.MONSTER);
        }
    }
コード例 #2
0
    public void ShowDeconstruction()
    {
        FrameMain.SetActive(false);

        GameObject objSubView = Instantiate(Resources.Load("UI/Lobby/SubViewDeconstruction")) as GameObject;

        objSubView.name = "SubViewDeconstruction";
        objSubView.transform.SetParent(FrameSubView.transform);
        objSubView.GetComponent <RectTransform>().anchoredPosition = Vector2.zero;
        SubViewDeconstruction s_deconstruction = objSubView.GetComponent <SubViewDeconstruction>();

        s_deconstruction.SetDeconstructionType(DECONSTRUCTION_TYPE.EQUIPMENT);
    }