ToolsEditor.cs 682 B

123456789101112131415161718192021222324252627
  1. using UnityEditor;
  2. namespace ET
  3. {
  4. public static class ToolsEditor
  5. {
  6. public static void ExcelExporter()
  7. {
  8. #if UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX
  9. const string tools = "./Tool";
  10. #else
  11. const string tools = ".\\Tool.exe";
  12. #endif
  13. ShellHelper.Run($"{tools} --AppType=ExcelExporter --Console=1", "../Bin/");
  14. }
  15. public static void Proto2CS()
  16. {
  17. #if UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX
  18. const string tools = "./Tool";
  19. #else
  20. const string tools = ".\\Tool.exe";
  21. #endif
  22. ShellHelper.Run($"{tools} --AppType=Proto2CS --Console=1", "../Bin/");
  23. }
  24. }
  25. }