blob: 00acafc8d5a22fea7682a5c82522dcbb122fba59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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())
{
}
}
}
|