using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
///
/// 装备菜单栏管理
///
public class PlayerBar : MonoBehaviour
{
public int Index => index;
[SerializeField] private int index;
[SerializeField] private BattlePanel _panel;
[SerializeField] private GameObject playerParent;
[SerializeField] private PlayerBarItem weaponBar;
[SerializeField] private PlayerBarItem weaponBar2;
[SerializeField] private PlayerBarItem armorBar;
[SerializeField] private PlayerBarItem audioUniversalBar;
[SerializeField] private PlayerBarItem audioWeaponBar;
[SerializeField] private PlayerBarItem audioWeaponBar2;
[SerializeField] private GameObject unLockWeaponBar;
[SerializeField] private GameObject unLockSoldier;
[SerializeField] private Image back;
[SerializeField] private Button _button;
[SerializeField] private Sprite seclet;
[SerializeField] private Sprite unSecet;
private void Awake()
{
back = GetComponent();
_button = GetComponent