namespace Unity.FPS.Gameplay { public class JetpackPickup : Pickup { protected override void OnPicked(PlayerCharacterController byPlayer) { var jetpack = byPlayer.GetComponent(); if (!jetpack) return; if (jetpack.TryUnlock()) { PlayPickupFeedback(); Destroy(gameObject); } } } }