コード例 #1
0
 void Start()
 {
     if (m_invenUIObj != null)
     {
         GameObject invenUI = Instantiate(m_invenUIObj, transform);
         invenUI.name  = m_invenUIObj.name;
         m_InventoryUI = invenUI.GetComponent <CInventoryUI>();
         StartCoroutine(InventoryUICoroutine());
     }
     if (m_messageUIObj != null)
     {
         GameObject messageUI = Instantiate(m_messageUIObj, transform);
         messageUI.name = m_messageUIObj.name;
         m_messageUI    = messageUI.GetComponent <CMessageUI>();
     }
 }