void OnClickJoin(ButtonScript obj, object args, int param1, int param2) { SceneData ssd = SceneData.GetData(GameManager.SceneID); if (SimpleTeamInfo.isRunning_) { PopText.Instance.Show(LanguageManager.instance.GetValue("jiaruteamkaishi")); } else { int level = GamePlayer.Instance.GetIprop(PropertyType.PT_Level); if (level >= SimpleTeamInfo.minLevel_ && level <= SimpleTeamInfo.maxLevel_) { if (SimpleTeamInfo.needPassword_) { teamId = (int)SimpleTeamInfo.teamId_; tips.SetActive(true); } else { NetConnection.Instance.joinTeam(SimpleTeamInfo.teamId_, ""); FastTeamPanel.HideMe(); } } else { //ErrorTipsUI.ShowMe(LanguageManager.instance.GetValue("dengjitishi")); PopText.Instance.Show(LanguageManager.instance.GetValue("dengjitishi")); } } }
void HideSelf() { TeamSystem.OnInitMyTeam -= HideSelf; FastTeamPanel.HideMe(); }