Beispiel #1
0
        // Token: 0x06000D1C RID: 3356 RVA: 0x00040CDC File Offset: 0x0003EEDC
        private static void RefreshObstructorsForCamera(CameraRigController cameraRigController)
        {
            Vector3 position = cameraRigController.transform.position;

            for (int i = 0; i < CharacterModel.instancesList.Count; i++)
            {
                CharacterModel characterModel = CharacterModel.instancesList[i];
                characterModel.fade = Mathf.Clamp01(Util.Remap(characterModel.GetNearestHurtBoxDistance(position), cameraRigController.fadeStartDistance, cameraRigController.fadeEndDistance, 0f, 1f));
            }
        }