using Game.Battle; namespace Game { public class PageDie : UIPageBase { public PageDie() { } protected override void OnCreate() { CreateUI(true); } protected override void OnDestroy() { } protected override void OnOpen() { Util.SetTimeScale(0); } protected override void OnClose() { Util.SetTimeScale(1); } public override void Update() { } protected override void OnInput(PPlayerInput context) { if (context.Action == EKeyActionType.Press) { UIManager.Instance.Close(); Util.EntityReborn(Util.GetMaster()); Util.EnterLevel(GameConst.LevelHome); } } } }