diff options
author | chai <chaifix@163.com> | 2022-04-22 22:00:37 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-04-22 22:00:37 +0800 |
commit | 64eeb50eb855d1166d41bd25b58a34919a49589d (patch) | |
tree | 8b093967e15d92d6bc5699fa7716066bf132b793 /SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs | |
parent | edaeb4b7c681cc1654745e5a9be531a71088d1af (diff) |
* equip, item, decoration
Diffstat (limited to 'SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs b/SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs new file mode 100644 index 0000000..00acafc --- /dev/null +++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs @@ -0,0 +1,32 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class PanelItemBar : PanelBase +{ + /// <summary> + /// 当前持有的Items + /// </summary> + public List<ItemWidget> m_Items = new List<ItemWidget>(); + + bool SwitchToLeft() + { + return Input.GetButtonDown("LeftItem"); + } + + bool SwitchToRight() + { + return Input.GetButtonDown("RightItem"); + } + + protected override void Update() + { + if (SwitchToLeft()) + { + } + if (SwitchToRight()) + { + } + } + +} |