Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.TestTools;
|
||||
|
||||
namespace BracerLib.Utility
|
||||
{
|
||||
[ExcludeFromCoverage]
|
||||
public static class DirectoryUtility
|
||||
{
|
||||
private const string FOLDER_SCRIPTABLE_DATA = "Scriptables";
|
||||
|
||||
public static string AssetPath => Application.dataPath;
|
||||
|
||||
public static string DataPath => Path.Combine(AssetPath, FOLDER_SCRIPTABLE_DATA);
|
||||
|
||||
public static void CreateDirectory(string path) => Directory.CreateDirectory(path);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user