mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
20 lines
484 B
C#
20 lines
484 B
C#
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
using TMPro;
|
||
|
|
||
|
namespace HeavenStudio.Editor
|
||
|
{
|
||
|
public class EditorSettings : MonoBehaviour
|
||
|
{
|
||
|
public Toggle cursorCheckbox;
|
||
|
|
||
|
public void OnCursorCheckboxChanged()
|
||
|
{
|
||
|
Editor.instance.isCursorEnabled = cursorCheckbox.isOn;
|
||
|
if (!Editor.instance.fullscreen)
|
||
|
{
|
||
|
GameManager.instance.CursorCam.enabled = Editor.instance.isCursorEnabled;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|