Files
pgs/Assets/Scripts/UI/EquipPanelController.cs

28 lines
934 B
C#
Raw Normal View History

2026-02-21 16:58:22 -08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EquipPanelController : MonoBehaviour {
[SerializeField] public InventorySlotController glovesSlot;
[SerializeField] public InventorySlotController overallSlot;
[SerializeField] public InventorySlotController shoesSlot;
[SerializeField] public InventorySlotController bowSlot;
[SerializeField] public EquipCGPanelController equipCGPanelController;
private List<GameObject> slots;
// Start is called before the first frame update
private void Start() {
RefreshAll();
}
public void RefreshAll() {
equipCGPanelController.Refresh();
glovesSlot.Refresh(-1, ItemType.EQUIP_GLOVES, false);
overallSlot.Refresh(-1, ItemType.EQUIP_OVERALL, false);
shoesSlot.Refresh(-1, ItemType.EQUIP_SHOES, false);
bowSlot.Refresh(-1, ItemType.EQUIP_BOW, false);
}
}