// Token: 0x06002280 RID: 8832 RVA: 0x0009564C File Offset: 0x0009384C private static void HandleHitMarker(DamageDealtMessage damageDealtMessage) { for (int i = 0; i < CrosshairManager.instancesList.Count; i++) { CrosshairManager crosshairManager = CrosshairManager.instancesList[i]; if (crosshairManager.cameraRigController) { GameObject target = crosshairManager.cameraRigController.target; if (damageDealtMessage.attacker == target) { crosshairManager.RefreshHitmarker(damageDealtMessage.crit); } else if (damageDealtMessage.victim == target) { Transform transform = crosshairManager.cameraRigController.transform; Vector3 position = transform.position; Vector3 forward = transform.forward; Vector3 position2 = transform.position; Vector3 vector = damageDealtMessage.position - position; float num = Vector2.SignedAngle(new Vector2(vector.x, vector.z), new Vector2(forward.x, forward.z)); if (num < 0f) { num += 360f; } crosshairManager.rtpcDamageDirection.value = num; Util.PlaySound("Play_UI_takeDamage", RoR2Application.instance.gameObject); } } } }
// Token: 0x06002150 RID: 8528 RVA: 0x0009C7A4 File Offset: 0x0009A9A4 private static void HandleHitMarker(DamageDealtMessage damageDealtMessage) { for (int i = 0; i < CrosshairManager.instancesList.Count; i++) { CrosshairManager crosshairManager = CrosshairManager.instancesList[i]; if (crosshairManager.cameraRigController && damageDealtMessage.attacker == crosshairManager.cameraRigController.target) { crosshairManager.RefreshHitmarker(damageDealtMessage.crit); } } }