private static void ResetHandler()
        {
            EntityViewModelManager.Reset();
            IsPVE = null;

            hudButton?.Dispose();
            hudButton = null;

            if (hudLayoutControl != null)
            {
                hudLayoutControl.Loaded -= LayoutControl_Loaded;
                hudLayoutControl         = null;
            }

            gameplayInputContext?.Stop();
            gameplayInputContext = null;
        }
Ejemplo n.º 2
0
        private static void ResetHandler()
        {
            WindowCNEIdetails.Close();

            CreativePanelManager.Reset();

            hudButton?.Dispose();
            hudButton = null;

            if (hudLayoutControl != null)
            {
                hudLayoutControl.Loaded -= LayoutControl_Loaded;
                hudLayoutControl         = null;
            }

            gameplayInputContext?.Stop();
            gameplayInputContext = null;
        }