projectEli/Assets/SimpleInventorySystem/Scripts/UI/LimitStackSlot.cs

45 lines
948 B
C#

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()
{
return limitStackSlotCapacities.HasReachedLimit();
}
private void Awake()
{
Slot = GetComponent<SlotUI>();
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
}