コード例 #1
0
        protected override void OnDestroy()
        {
            // close window
            if (windowOpen)
            {
                GLFWNativeCalls.destroy_window();
                windowOpen = false;
            }

            if (initialized)
            {
                GLFWNativeCalls.shutdown(0);
                initialized = false;
            }

            base.OnDestroy();
        }
コード例 #2
0
        protected override void OnDestroy()
        {
            // close window
            if (windowOpen)
            {
#if UNITY_EDITOR
                GLFWNativeCalls.show_window(0);
#else
                GLFWNativeCalls.destroy_window();
#endif
                windowOpen = false;
            }

#if UNITY_DOTSPLAYER
            if (initialized)
            {
                GLFWNativeCalls.shutdown(0);
                initialized = false;
            }
#endif
        }