public void OpenPanel(MakePanelInfo panelInfo) { Debug.Log(panelInfo); makePanelInfo = panelInfo; PrintUI(makePanelInfo); MakePanel.SetActive(true); }
public void PrintUI(MakePanelInfo panelInfo) { makePanelUI.title.text = panelInfo.title; makePanelUI.level.text = "LV" + panelInfo.level.ToString(); makePanelUI.description.text = panelInfo.description.ToString(); makePanelUI.count1.text = panelInfo.count[0].ToString(); makePanelUI.count2.text = panelInfo.count[1].ToString(); makePanelUI.count3.text = panelInfo.count[2].ToString(); }
public void OpenMakePanel(int index) { MakePanelInfo makePanelInfo = new MakePanelInfo() //개체 이니셜라이저 { title = "가시범퍼", level = 3, description = "공격력 3%향상", count = new int[] { 1, 2, 3 } }; makePanelManager.OpenPanel(makePanelInfo); }