Megacity demo game for UOS
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
572 B

using UnityEngine;
namespace Unity.MegaCity.UI
{
/// <summary>
/// Utility class for managing the cursor.
/// </summary>
public static class CursorUtils
{
public static void ShowCursor(bool visible)
{
if (visible)
{
Cursor.visible = true;
Cursor.lockState = CursorLockMode.None;
}
else
{
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked;
}
}
}
}