| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | 
							- using UnityEngine;
 
- namespace GFGGame
 
- {
 
-     public class ErrorCodeController
 
-     {
 
-         //返回结果为true时,表示可以继续失败步骤
 
-         public static bool Handler(int errorCode)
 
-         {
 
-             switch (errorCode)
 
-             {
 
-                 case ET.ErrorCode.ERR_NetWorkError:
 
-                     {
 
-                         AlertSystem.Show("网络异常")
 
-                         .SetRightButton(true, "稍后再试", (object data) =>
 
-                         {
 
-                             Application.Quit();
 
-                         });
 
-                     }
 
-                     break;
 
-                 case ET.ErrorCode.ERR_ClientVersionError:
 
-                     {
 
-                         AlertSystem.Show("客户端版本错误,请联系研发获取最新版本!")
 
-                             .SetLeftButton(true, "知道了", (data) =>
 
-                             {
 
-                                 Application.Quit();
 
-                             });
 
-                     }
 
-                     break;
 
-                 case ET.ErrorCode.Err_LoginCountFull:
 
-                     {
 
-                         AlertSystem.Show("游戏已爆满!")
 
-                               .SetLeftButton(true, "稍后再试", (data) =>
 
-                               {
 
-                                   Application.Quit();
 
-                               });
 
-                     }
 
-                     break;
 
-                 case ET.ErrorCode.Err_ServerMaintain:
 
-                     {
 
-                         AlertSystem.Show("服务器维护中!")
 
-                             .SetLeftButton(true, "稍后再试", (data) =>
 
-                             {
 
-                                 Application.Quit();
 
-                             });
 
-                     }
 
-                     break;
 
-                 case ET.ErrorCode.ERR_AntiAddiction:
 
-                     {
 
-                         string promptStr = "您属于未成年人,已被纳入防沉迷系统。每日22时至次日8时,本游戏将无法为未成年人用户提供游戏服务。";
 
-                         AlertSystem.Show(promptStr)
 
-                             .SetRightButton(true, "稍后再试", (object data) =>
 
-                             {
 
-                                 Application.Quit();
 
-                             });
 
-                     }
 
-                     break;
 
-                 default:
 
-                     if (ErrorCodeCfgArray.Instance.GetCfg(errorCode) != null)
 
-                     {
 
-                         PromptController.Instance.ShowFloatTextPrompt(ErrorCodeCfgArray.Instance.GetCfg(errorCode).tips);
 
-                         ET.Log.Debug("errorCode" + errorCode.ToString());
 
-                         return true;
 
-                     }
 
-                     else
 
-                     {
 
-                         PromptController.Instance.ShowFloatTextPrompt("errorCode " + errorCode.ToString());
 
-                         ET.Log.Error("errorCode" + errorCode.ToString());
 
-                         return true;
 
-                     }
 
-             }
 
-             return false;
 
-         }
 
-     }
 
- }
 
 
  |