데이터 파이프라인 구축
This commit is contained in:
29
Assets/Editor/DataImporter/CLIImporter.cs
Normal file
29
Assets/Editor/DataImporter/CLIImporter.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Assets/Editor/DataImporter/CLIImporter.cs
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace DigAndDefend.Editor
|
||||
{
|
||||
public static class CLIImporter
|
||||
{
|
||||
public static void ImportAllDataCLI()
|
||||
{
|
||||
Debug.Log("=== CLI Import 시작 ===");
|
||||
|
||||
try
|
||||
{
|
||||
CSVToSOImporter.ImportAll();
|
||||
|
||||
Debug.Log("=== CLI Import 성공 ===");
|
||||
EditorApplication.Exit(0);
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Debug.LogError($"=== CLI Import 실패 ===");
|
||||
Debug.LogException(e);
|
||||
EditorApplication.Exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user