コード例 #1
0
        private void OnGUI()
        {
            Cursor.lockState = CursorLockMode.None;
            if (isTitleScreenScene)
            {
                Cursor.visible = false;
                return;
            }

            if (!isMenuScene)
            {
                ModHooks.OnCursor();
                return;
            }

            if (controllerPressed)
            {
                Cursor.visible = false;
                return;
            }

            Cursor.visible = true;
        }