/// <summary>
    ///
    /// </summary>
    public void CheckScore()
    {
        if (MaxKills <= 0)
        {
            return;
        }

        if (!isOneTeamMode)
        {
            if (Team_1_Score >= MaxKills)
            {
                TimeManager.FinishRound();
            }
            if (Team_2_Score >= MaxKills)
            {
                TimeManager.FinishRound();
            }
        }
        else
        {
            if (RoomMenu.GetPlayerStar.GetKills() >= MaxKills)
            {
                TimeManager.FinishRound();
                return;
            }
            if (AIMananger != null && AIMananger.BotsActive && AIMananger.BotsStatistics.Count > 0)
            {
                if (AIMananger.GetBotWithMoreKills().Kills >= MaxKills)
                {
                    TimeManager.FinishRound();
                }
            }
        }
    }
示例#2
0
    /// <summary>
    ///
    /// </summary>
    void CheckScore()
    {
        if (MaxKills <= 0)
        {
            return;
        }

        if (GetGameMode != GameMode.FFA)
        {
            if (Team_1_Score >= MaxKills)
            {
                TimeManager.FinishRound();
            }
            if (Team_2_Score >= MaxKills)
            {
                TimeManager.FinishRound();
            }
        }
        else
        {
            if (RoomMenu.GetStartPlayerScore >= MaxKills)
            {
                TimeManager.FinishRound();
            }
        }
    }