using System.Collections; using System.Collections.Generic; using UnityEngine; public class PanelItemBar : PanelBase { /// /// 当前持有的Items /// public List m_Items = new List(); bool SwitchToLeft() { return Input.GetButtonDown("LeftItem"); } bool SwitchToRight() { return Input.GetButtonDown("RightItem"); } protected override void Update() { if (SwitchToLeft()) { } if (SwitchToRight()) { } } }