public void LoginFailed(LoginGameResult result) { string tips = ""; switch (result) { case LoginGameResult.NoneAccount: tips = StringUtil.Get("Login failed, account not found!"); break; case LoginGameResult.WrongPassword: tips = StringUtil.Get("Login failed, wrong password!"); break; case LoginGameResult.Unkonw: tips = StringUtil.Get("Login failed, server error!"); break; default: LogUtil.W("Unknow LoginGameResult type {0}", result); break; } AlertUtil.ShowSimpleTipsPanel(tips); }