Example #1
0
    internal void Initialize(InventoryType type, InventoryData data, bool isPermanent = true)
    {
        this.type = type;
        this.data = data;
        this.name = data.name;
        SetPermanence(isPermanent);

        closeButton.Initialize(type.closeButton, type.closeButtonDown);
        minmaxButton.Initialize(type.minimiseButton, type.minimiseButtonDown, type.maximiseButton, type.maximiseButtonDown);
    }