First commit for private source control. Older commits available on Github.

This commit is contained in:
2026-03-26 12:52:52 +00:00
parent a04c602626
commit 2d449c4a17
2176 changed files with 408185 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
using UnityEditor;
namespace NaughtyAttributes.Editor
{
internal class SavedBool
{
private bool _value;
private string _name;
public bool Value
{
get
{
return _value;
}
set
{
if (_value == value)
{
return;
}
_value = value;
EditorPrefs.SetBool(_name, value);
}
}
public SavedBool(string name, bool value)
{
_name = name;
_value = EditorPrefs.GetBool(name, value);
}
}
}