You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
788 B
C#
29 lines
788 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BgTools.PlayerPrefsEditor
|
|
{
|
|
[System.Serializable]
|
|
public class PreferenceEntryHolder : ScriptableObject
|
|
{
|
|
public List<PreferenceEntry> userDefList;
|
|
public List<PreferenceEntry> unityDefList;
|
|
|
|
private void OnEnable()
|
|
{
|
|
hideFlags = HideFlags.DontSave;
|
|
if (userDefList == null)
|
|
userDefList = new List<PreferenceEntry>();
|
|
if (unityDefList == null)
|
|
unityDefList = new List<PreferenceEntry>();
|
|
}
|
|
|
|
public void ClearLists()
|
|
{
|
|
if (userDefList != null)
|
|
userDefList.Clear();
|
|
if (unityDefList != null)
|
|
unityDefList.Clear();
|
|
}
|
|
}
|
|
} |