Route loot pickup through checkpoints
This commit is contained in:
parent
eb2f1a3d2b
commit
1fadd56464
5 changed files with 83 additions and 2 deletions
|
|
@ -25,7 +25,8 @@ public class ShieldManager : MonoBehaviour
|
|||
var mine = other.collider.GetComponent<Mine>();
|
||||
if (itemPickup)
|
||||
{
|
||||
if (Entity.CargoBays.Any(c => c.TryStore(itemPickup.Item)))
|
||||
if (ActionGameManager.Instance != null &&
|
||||
ActionGameManager.Instance.CommitLootPickup(Entity, itemPickup.Item))
|
||||
{
|
||||
// TODO: Pickup notification!
|
||||
Destroy(itemPickup.gameObject);
|
||||
|
|
|
|||
Loading…
Reference in a new issue