14 lines
215 B
C#
14 lines
215 B
C#
using UnityEngine;
|
|
|
|
public class CartTracker : MonoBehaviour
|
|
{
|
|
public CartSpawner spawner;
|
|
|
|
void OnDestroy()
|
|
{
|
|
if (spawner != null)
|
|
{
|
|
spawner.CartRemoved();
|
|
}
|
|
}
|
|
}
|