// Token: 0x06000EBA RID: 3770 RVA: 0x0004190C File Offset: 0x0003FB0C private void ScheduleIntensityCalculation(GameObject targetBodyObject) { if (!targetBodyObject) { return; } ReadOnlyCollection <TeamComponent> teamMembers = TeamComponent.GetTeamMembers(TeamIndex.Monster); int count = teamMembers.Count; this.EnsureEnemyBufferSize(count); int num = 0; int i = 0; int num2 = count; while (i < num2) { TeamComponent teamComponent = teamMembers[i]; InputBankTest component = teamComponent.GetComponent <InputBankTest>(); CharacterBody component2 = teamComponent.GetComponent <CharacterBody>(); if (component) { this.enemyInfoBuffer[num++] = new MusicController.EnemyInfo { aimRay = new Ray(component.aimOrigin, component.aimDirection), threatScore = (component2.master ? component2.GetNormalizedThreatValue() : 0f) }; } i++; } this.calculateIntensityJob = new MusicController.CalculateIntensityJob { enemyInfoBuffer = this.enemyInfoBuffer, elementCount = num, targetPosition = targetBodyObject.transform.position, nearDistance = 20f, farDistance = 75f }; this.calculateIntensityJobHandle = this.calculateIntensityJob.Schedule(num, 32, default(JobHandle)); }