You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
859 B
C#
40 lines
859 B
C#
using Game.Battle;
|
|
|
|
namespace Game
|
|
{
|
|
public class PageBag : UIPageBase<ViewBag>
|
|
{
|
|
public PageBag()
|
|
{
|
|
}
|
|
protected override void OnCreate()
|
|
{
|
|
CreateUI(true);
|
|
|
|
}
|
|
protected override void OnDestroy()
|
|
{
|
|
}
|
|
protected override void OnOpen()
|
|
{
|
|
|
|
}
|
|
protected override void OnClose()
|
|
{
|
|
}
|
|
public override void Update()
|
|
{
|
|
|
|
}
|
|
protected override void OnInput(PPlayerInput context)
|
|
{
|
|
if (context.Action == EKeyActionType.Press)
|
|
{
|
|
if (context.Key == EFunctionKey.Bag || context.Key == EFunctionKey.Menu)
|
|
{
|
|
UIManager.Instance.Close();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |