



public class JumpsuitStorageCondition : Actor, IStorageCondition
{
[SerializeField]
private AttachedContainer _beltContainer;
public bool CanRemove(AttachedContainer container, Item item)
{
return _beltContainer.Empty;
}
public bool CanStore(AttachedContainer container, Item item)
{
return true;
}
}
This page describe how one can set up a container on a game object in the Unity's editor.







The container & inventory system. How to set them up and use in-game.