using Game.Battle; namespace Game { public class PageBag : UIPageBase { 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(); } } } } }