Exemplo n.º 1
0
 public void DestoryCreateRoleView()
 {
     if (m_SelectRoleView != null)
     {
         GameObject.DestroyImmediate(m_SelectRoleView.gameObject, true);
         m_SelectRoleView = null;
     }
 }
Exemplo n.º 2
0
 // 角色创建面板
 public void ShowCreateRoleView()
 {
     if (m_SelectRoleView == null)
     {
         System.Action <Object> handler = (asset) => {
             if (asset != null)
             {
                 GameObject selectRoleView = (GameObject)GameObject.Instantiate(asset);
                 m_SelectRoleView = selectRoleView.GetComponent <SelectRoleView>();
                 NGUIUtility.SetParent(waitingParentT, selectRoleView.transform);
             }
         };
         StartCoroutine(BundleMgr.CreateObject(kResource.View, "SelectRoleView", "SelectRoleView", handler));
     }
 }