void OnClickBackCity(ButtonScript obj, object args, int param1, int param2) { if (TeamSystem.IsInTeam() && !TeamSystem.AwayTeam(GamePlayer.Instance.InstId)) { MessageBoxUI.ShowMe(LanguageManager.instance.GetValue("tishiDuiwu"), () => { // NetConnection.Instance.exitLobby (); // ReturnMainScene(); // ExitSceneOk(); TeamSystem.BackCity(); }); } else { ReturnMainScene(); //TeamUIPanel.Instance.ExitSceneOk(); } }