From 6f8ed2e37f8762fb3501a671d0dca40bcd68edae Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期日, 21 十月 2018 10:26:29 +0800
Subject: [PATCH] Merge branch 'master' into leonard

---
 Assets/Editor/Tool/CreateLuaClassFile.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Assets/Editor/Tool/CreateLuaClassFile.cs b/Assets/Editor/Tool/CreateLuaClassFile.cs
index 166f7a6..fc36d05 100644
--- a/Assets/Editor/Tool/CreateLuaClassFile.cs
+++ b/Assets/Editor/Tool/CreateLuaClassFile.cs
@@ -53,7 +53,8 @@
         StreamReader streamReader = new StreamReader(resourceFile);
         string text = streamReader.ReadToEnd();
         streamReader.Close();
-        string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(pathName);
+        var fileNameWithoutExtension = Path.GetFileNameWithoutExtension(pathName);
+        text = Regex.Replace(text, "#ClassName#", fileNameWithoutExtension);
         text = Regex.Replace(text, "#DateTime#", System.DateTime.Now.ToLongDateString());
 
         bool encoderShouldEmitUTF8Identifier = true;

--
Gitblit v1.8.0