예제 #1
0
    private bool StopCurrentParticipation(ParticipationRequest request)
    {
        bool flag = participationData.isTopPriorityAndState(ParticipationState.Participating, request.Requestor) || participationData.isTopPriorityAndState(ParticipationState.Retained, request.Requestor);

        if (flag)
        {
            Internal_UpdateParticipationWhenSomethingGotRemoved(request.CompetitorReference, "Controller_stopRequest");
            Competitor <GameObject> competitor = PriorityCompetition.GetCompetitor(request.Requestor);
            if (competitor == null)
            {
                StopObserving(request.CompetitorReference);
            }
        }
        return(flag);
    }