Esempio n. 1
0
    public void ShowUpgrade()
    {
        FrameMain.SetActive(false);

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

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

        s_upgrade.SetUpgradeType(UPGRADE_TYPE.EQUIPMENT);
    }
Esempio n. 2
0
    public void ShowUpgrade()
    {
        //Upgrade는 몬스터일때만
        if (selectedMenu == menu_type.MONSTER)
        {
            frameScroll.SetActive(false);

            GameObject objSubView = Instantiate(Resources.Load("UI/Lobby/SubViewUpgrade")) as GameObject;
            objSubView.name = "SubViewUpgrade";
            objSubView.transform.SetParent(FrameSubView.transform);
            objSubView.GetComponent <RectTransform>().anchoredPosition = Vector2.zero;
            SubViewUpgrade s_upgrade = objSubView.GetComponent <SubViewUpgrade>();
            s_upgrade.SetUpgradeType(UPGRADE_TYPE.MONSTER);
        }
        else
        {
            DebugLog.Log(false, "Warning : Montser upgrade only");
        }
    }