Files
OnlyNPC/Assets/FPS/Scripts/Gameplay/JetpackPickup.cs
manhduyhoang90 167a617e09 asdasd
2026-05-26 09:46:57 +07:00

18 lines
435 B
C#

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