static public void Create(QuestData _Data) { GameObject box = null; if (m_QuestInformationBoxPoolObject && m_QuestInformationBoxPoolObject.transform.childCount > 0) { box = m_QuestInformationBoxPoolObject.transform.GetChild(0).gameObject; } else { box = Instantiate(Resources.Load <GameObject>("QuestInformationBox")); } if (box) { QuestInformationBox qb = box.GetComponent <QuestInformationBox>(); if (qb) { qb.Initialzie(_Data); } } }
public void QuestInformation() { QuestInformationBox.Create(m_QuestData); }