public void OnPassFinished(Ball.PassResult res) { Team prev = this.game.Ball.PreviousOwner.Team; SuperSettings settings = this.game.settings.Global.Super; if (res == Ball.PassResult.GROUND) { this.IncreaseSuper(settings.passLooseSuperPoints, prev); } if (res == Ball.PassResult.MANAGED) { this.IncreaseSuper(settings.passWinSuperPoints, prev); } if (res == Ball.PassResult.OPPONENT) { this.IncreaseSuper(settings.passLooseSuperPoints, prev); this.IncreaseSuper(settings.passInterceptSuperPoints, prev.opponent); } }
public void OnPassFinished(Ball.PassResult res) { this.Referee.OnPassFinished(res); }