25 lines
620 B
C#
25 lines
620 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
public abstract class WarehousePanelController : DraggablePanelController
|
|
{
|
|
public override void BuildPanelContent(List<KeyValuePair<int, Item>> elements)
|
|
{
|
|
base.BuildPanelContent(elements);
|
|
|
|
ClearSlots();
|
|
}
|
|
|
|
public override void ClearSlots()
|
|
{
|
|
foreach (ItemSlot ChestSlot in ChildBoxList)
|
|
{
|
|
ChestSlot.ResetSlot();
|
|
}
|
|
}
|
|
|
|
public abstract override void BuildPanelSlots();
|
|
public abstract override GameObject BuildSlot(int key, GameObject _parent);
|
|
} |