diff options
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()) + { + } + } + +} |