Пример #1
0
    void OnClick()
    {
        if (TeamSystem.RealTeamCount() < 3)
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("arenapvpnum"), PopText.WarningType.WT_Warning);
            return;
        }

        bool isOpen = ActivitySystem.Instance.GetInfoState(4) == ActivitySystem.ActivityInfo.ActivityState.AS_Open;

        if (!isOpen)
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("EN_ActivityNoTime"), PopText.WarningType.WT_Warning);
            return;
        }

        NetConnection.Instance.enterBattle(battleID_);
        if (OnSelectDifficult != null)
        {
            OnSelectDifficult(diff_);
        }
    }