private static void OnPlayerDeath(DeathType deathType) { var cc = Locator.GetPlayerController(); var boundSector = GetBoundSector(); var boundSectorName = boundSector.GetName(); var relativePos = boundSector.transform.InverseTransformPoint(cc.transform.position); tracking.TrackedDeaths.Add(new DeathTracking.Death { ProfileName = ActiveProfile, SectorName = boundSectorName, DeathType = deathType, LoopCount = TimeLoop.GetLoopCount(), SecondsElapsed = TimeLoop.GetSecondsElapsed(), PositionX = relativePos.x, PositionY = relativePos.y, PositionZ = relativePos.z }); Debug.Log($"Death: {boundSectorName}"); }