0.1.0: Added favorites window

This commit is contained in:
Anders Ejlersen 2021-02-14 11:14:16 +01:00
parent 80499f0a7e
commit dea60c6e4a
37 changed files with 1129 additions and 0 deletions

View file

@ -0,0 +1,26 @@
using UnityEditor;
namespace Game.NavigationTool.Editor
{
internal static class FavoritesUtility
{
private static Favorites FAVORITES;
static FavoritesUtility()
{
FAVORITES = null;
}
public static Favorites GetFavorites()
{
return FAVORITES ?? (FAVORITES = new Favorites());
}
[MenuItem("Tools/Utilities/Favorites/Delete")]
public static void DeleteAll()
{
FAVORITES = null;
EditorPrefs.DeleteKey(Favorites.PREF_ID);
}
}
}