using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Ether { public static class TempTools { /// /// 生成类 /// public static void GenerateClass(string className, string baseClassName, string content, string generatePath) { string tempClassStr = FileTools.ReadFile(PathTools.TempClassPath); tempClassStr = tempClassStr.Replace("$ClassName$", className); tempClassStr = tempClassStr.Replace("$BaseClassName$", baseClassName); tempClassStr = tempClassStr.Replace("$Content$", content); FileTools.WriteFile(generatePath, tempClassStr); } } }