void OnTriggerExit(Collider other) { PlayerStateController player = other.GetComponentInParent <PlayerStateController>(); if (!player) { return; } Loot loot = player.GetComponentInChildren <Loot>(); if (!loot) { return; } // Stop the absorbtion loot.CancelAbsorb(); // Remove VFX RemoveRayVFX(player.transform, 0f); }