private void OnTriggerEnter(Collider col) { if (col.CompareTag("Player")) { string adress = ""; Transform currentObject = gameObject.transform; while (currentObject != null) { adress = $"{currentObject.name}/{adress}"; currentObject = currentObject.transform.parent; } Debug.Log($"Sent by \"{adress}\": Death at: {gameObject.name}"); //TODO: swap with trigger. SpawnPoint.Kill(); } }