|
using System;
|
|
using UnityEngine;
|
|
|
|
[RequireComponent(typeof(BoxCollider2D))]
|
|
public class Minerals : MonoBehaviour
|
|
{
|
|
[NonSerialized]
|
|
public BoxCollider2D boxCollider;
|
|
public int amount;
|
|
|
|
private void Start()
|
|
{
|
|
boxCollider = GetComponent<BoxCollider2D>();
|
|
}
|
|
}
|