mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-11 04:05:11 +00:00
28 lines
No EOL
607 B
C#
28 lines
No EOL
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()
|
|
{
|
|
}
|
|
}
|
|
} |