mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-05-01 05:44:27 +02:00
28 lines
607 B
C#
28 lines
607 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using TMPro;
|
|
|
|
namespace HeavenStudio.Editor
|
|
{
|
|
public class EditorSettings : TabsContent
|
|
{
|
|
public Toggle cursorCheckbox;
|
|
|
|
public void OnCursorCheckboxChanged()
|
|
{
|
|
Editor.instance.isCursorEnabled = cursorCheckbox.isOn;
|
|
if (!Editor.instance.fullscreen)
|
|
{
|
|
GameManager.instance.CursorCam.enabled = Editor.instance.isCursorEnabled;
|
|
}
|
|
}
|
|
|
|
public override void OnOpenTab()
|
|
{
|
|
}
|
|
|
|
public override void OnCloseTab()
|
|
{
|
|
}
|
|
}
|
|
} |