Exemplo n.º 1
0
 /// <summary>
 /// UI窗体入栈
 /// </summary>
 /// <param name="baseUiForm">窗体的名称</param>
 private void PushUiFormToStack(UIFormBase baseUiForm)
 {
     if (baseUiForm == null)
     {
         Debug.Log(GetType() + "/PushUIFormToStack  UIFormBase =NULL");
     }
     else
     {
         // 判断栈集合中,是否已有窗体,有则“冻结”处理
         if (_stackCurrentUiForms.Count > 0)
         {
             UIFormBase topUiForm = _stackCurrentUiForms.Peek();
             topUiForm.Freeze();
         }
         // 把指定的UI窗体,入栈操作
         _stackCurrentUiForms.Push(baseUiForm);
         // 显示窗体
         baseUiForm.Display();
     }
 }