update
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user