protected override void OnDestroy()
        {
            DestroyTickTimer();

            EntitySystemWorld.Shutdown();
            ControlsWorld.Shutdown();

            base.OnDestroy();

            instance = null;
        }
        //

        public WPFAppEngineApp(ApplicationTypes applicationType)
            : base(applicationType)
        {
            instance = this;
        }