public void Build() { GameObject popupObject = GameObject.Instantiate(Resources.Load("Popup/" + "PopupPanel", typeof(GameObject))) as GameObject; popupObject.transform.SetParent(this.m_target, false); PopupPanel popupPanel = popupObject.GetComponent <PopupPanel>(); popupPanel.SetTitle(this.m_title); popupPanel.SetDescription(this.m_description); popupPanel.SetButtons(this.m_buttonInfoList); popupPanel.Init(); }