using UnityEngine; public class FarmManager : MonoBehaviour { // Singleton public static FarmManager Instance { get; private set; } [SerializeField] private Inventory cropInventory; [SerializeField] private Inventory harvestInventory; public Inventory CropInventory { get { return cropInventory; } } public Inventory HarvestInventory { get { return harvestInventory; } } private void Awake() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); } } private void Start() { cropInventory = new Inventory(2, 200); harvestInventory = new Inventory(2, 200); } }