public override void OnPop()
        {
            base.OnPop();
            ignoreAllocatedBed       = false;
            GameManager.OnEncounter -= GameManager_OnEncounter;

            DaggerfallInterior interior = GameManager.Instance.PlayerEnterExit.Interior;

            if (GameManager.Instance.PlayerEnterExit.IsPlayerInsideBuilding && interior != null)
            {
                interior.UpdateNpcPresence();
            }

            // Lower player resting flag when UI closes
            playerEntity.IsResting   = false;
            playerEntity.IsLoitering = false;

            // Raise sleep ended event when popping UI and player has rested more than 6 hours
            if (totalHours > sleepEventMinimumHours)
            {
                RaiseOnSleepEndEvent();
            }

            //Debug.Log(string.Format("Resting raised time by {0} hours total", totalHours));
        }
        public override void OnPop()
        {
            base.OnPop();
            ignoreAllocatedBed       = false;
            GameManager.OnEncounter -= GameManager_OnEncounter;

            DaggerfallInterior interior = GameManager.Instance.PlayerEnterExit.Interior;

            if (GameManager.Instance.PlayerEnterExit.IsPlayerInsideBuilding && interior != null)
            {
                interior.UpdateNpcPresence();
            }

            Debug.Log(string.Format("Resting raised time by {0} hours total", totalHours));
        }