From 64eeb50eb855d1166d41bd25b58a34919a49589d Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 22 Apr 2022 22:00:37 +0800 Subject: * equip, item, decoration --- .../Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs (limited to 'SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/PanelItemBar.cs') 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 +{ + /// + /// 当前持有的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()) + { + } + } + +} -- cgit v1.1-26-g67d0