Added Car Alarm Super Surprise
This commit is contained in:
parent
8dfbd22a9e
commit
f737955a88
10 changed files with 1240 additions and 304 deletions
14
Assets/Scripts/CartTracker.cs
Normal file
14
Assets/Scripts/CartTracker.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class CartTracker : MonoBehaviour
|
||||
{
|
||||
public CartSpawner spawner;
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
if (spawner != null)
|
||||
{
|
||||
spawner.CartRemoved();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue