public override void OnRemoveTrigger(Entity entity) { base.OnRemoveTrigger(entity); if (entity is Player player) { player.companionManager.RemoveCompanion(companion); if (companion != null) { companion.Die(); } } }