Beispiel #1
0
 /// <summary>
 /// 删除窗体
 /// </summary>
 public void CloseWindow()
 {
     if (WindowGameObject != null)
     {
         WindowGameObject.SetActive(false);
     }
     //清空事件列表
     m_WindowLoadComplatedCallBack = null;
 }
Beispiel #2
0
 /// <summary>
 /// 显示窗体
 /// </summary>
 public void ShowWindow()
 {
     if (WindowGameObject != null)
     {
         WindowGameObject.SetActive(true);
         ResetWindowIndex(m_WindowIndex);//刷新索引位置
         RefreshWindowData(WindowData);
         if (m_WindowLoadComplatedCallBack != null)
         {
             m_WindowLoadComplatedCallBack(this);
             m_WindowLoadComplatedCallBack = null;
         }
     }
 }