// 활성시킬 팝업내용오브젝트 void Active_popupMainOBJ(PopupBuyItem_Type popupType) { for (int i = 0; i < Lst_popupInfoOBJ.Count; i++) { Lst_popupInfoOBJ[i].SetActive(i == (int)popupType); } }
public void Set_info(PopupBuyItem_Type popupType, string massege, string price, string buyItemType) { popupBuyItemType = popupType; text_main.text = massege; text_price.text = price; image_price.sprite = ImageManager.instance.Get_Sprite(buyItemType); // 활성시킬 팝업내용오브젝트 Active_popupMainOBJ(popupBuyItemType); }