Esempio n. 1
0
 virtual protected void addUIAndBox()
 {
     if (m_uiPrefabRes == null)
     {
         m_uiPrefabRes = Ctx.m_instance.m_uiPrefabMgr.getAndSyncLoad <UIPrefabRes>(m_uiPrefabPath);
         GameObject _go = m_uiPrefabRes.InstantiateObject(m_uiPrefabPath);
         _go.name = "UIRoot";
         UtilApi.SetParent(_go, gameObject(), false);
     }
     if (m_boxModel == null)
     {
         m_boxModel = Ctx.m_instance.m_modelMgr.getAndSyncLoad <ModelRes>(m_boxModelPath);
         UtilApi.copyBoxCollider(m_boxModel.getObject() as GameObject, gameObject());
     }
 }