| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | 
							- /*
 
-  * 使用示例:
 
-     AlertSystem.Show("喜欢吗!")
 
-     .SetTitle("温馨提示")
 
-     .SetLeftButton(true, "喜欢", (object data1) =>
 
-     {
 
-         
 
-     })
 
-     .SetRightButton(true, "不喜欢")
 
-     .SetData("aa");
 
-  */
 
- namespace GFGGame
 
- {
 
-     public class AlertUI
 
-     {
 
-         private static AlertWindow _alertWindow;
 
-         public static IAlert Show(string message, string tips = "")
 
-         {
 
-             if (_alertWindow == null)
 
-             {
 
-                 _alertWindow = new AlertWindow();
 
-             }
 
-             _alertWindow.Reset();
 
-             _alertWindow.viewName = "AlertUI";
 
-             _alertWindow.SetLayer(ConstViewLayer.TOP);
 
-             _alertWindow.SetMessage(message);
 
-             _alertWindow.SetTips(tips);
 
-             _alertWindow.Show();
 
-             return _alertWindow;
 
-         }
 
-         public static void hide()
 
-         {
 
-             if (_alertWindow != null)
 
-             {
 
-                 _alertWindow.Hide();
 
-             }
 
-         }
 
-         public static void Dispose()
 
-         {
 
-             _alertWindow = null;
 
-         }
 
-     }
 
- }
 
 
  |