123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- using System;
- using System.IO;
- using UnityEngine;
- namespace CrossgateToolkit
- {
- public static class CGTool
- {
-
- public class CGPath
- {
-
- public string PAL;
-
- public string BIN;
-
- public string MAP;
-
- public string BGM;
-
- public string AUDIO;
-
- }
-
-
- public static CGPath PATH = new CGPath()
- {
- BIN = Environment.CurrentDirectory + "/bin",
- PAL = Environment.CurrentDirectory + "/pal",
- MAP = Environment.CurrentDirectory + "/map",
- BGM = Environment.CurrentDirectory + "/bgm",
- AUDIO = Environment.CurrentDirectory + "/se"
- };
-
- public static void Init()
- {
-
- if (PATH.PAL != null) Palet.Init();
-
- if (PATH.BIN != null) Graphic.Init();
-
- if (PATH.MAP != null) Map.Init();
- Debug.Log("[CGTool] CGTool初始化完成");
- }
- }
- }
|