This commit is contained in:
DCFApixels 2025-03-14 17:40:39 +08:00
parent 5da7bfd4fb
commit d7b9fdd903

View File

@ -77,6 +77,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
private static bool IsScript(string filePath)
{
if (filePath.Length <= 3) { return false; }
int i = filePath.Length - 3;
return filePath[i++] == '.'
&& filePath[i++] == 'c'