private void OnTriggerEnter(Collider other) { if (other.gameObject.GetComponent <PortableObject>()) { Debug.Log("Обнаружен объект для ТП"); spawnController.AddInListObjectsWaitingTeleport(other.gameObject); } }