Exemplo n.º 1
0
    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"));
            }
        }
    }
Exemplo n.º 2
0
 void HideSelf()
 {
     TeamSystem.OnInitMyTeam -= HideSelf;
     FastTeamPanel.HideMe();
 }