void OnClickKuaisu(ButtonScript obj, object args, int param1, int param2) { int Level = GamePlayer.Instance.GetIprop(PropertyType.PT_Level); List <COM_SimpleTeamInfo> simpInfos = TeamSystem.targetTeam(typeTeam); if (simpInfos.Count == 0) { PopText.Instance.Show(LanguageManager.instance.GetValue("wuciduiwu")); return; } for (int i = 0; i < simpInfos.Count; i++) { if (Level < simpInfos[i].minLevel_ || Level > simpInfos[i].maxLevel_) { continue; } else { if (simpInfos[i].isWelcome_) { continue; } ListTeamCell.teamId = (int)simpInfos[i].teamId_; NetConnection.Instance.joinTeam((uint)simpInfos[i].teamId_, simpInfos[i].pwd_); return; } } PopText.Instance.Show(LanguageManager.instance.GetValue("wuciduiwu")); }
void RefreshTeamTypeMenbers(TeamType ttype) { if (TeamSystem.targetTeam(ttype).Count == 0) { wuLabel.gameObject.SetActive(true); } else { wuLabel.gameObject.SetActive(false); } RefreshTeam(TeamSystem.targetTeam(ttype)); }