using System.Collections; using System.Collections.Generic; using UnityEngine; namespace SimpleInventorySystem { public class LimitStackSlot : MonoBehaviour { [HideInInspector] public SlotUI Slot; public int Weight; [HideInInspector] public LimitStackSlotManager limitStackSlotCapacities; public void Increment() { limitStackSlotCapacities.Increment(this); } public void Decrement() { limitStackSlotCapacities.Decrement(this); } public bool HasReachedLimit(int weight) { return limitStackSlotCapacities.HasReachedLimit(weight); } private void Awake() { Slot = GetComponent(); } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } } }