Browse Source

Merge pull request #226 from nansofting/fix-bytecode-rename

fix: CS0117 error by renaming ByteCode to Bytecode
akeit0 1 week ago
parent
commit
ab3e7b28ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua.Unity/Assets/Lua.Unity/Editor/LuacAssetEditor.cs

+ 1 - 1
src/Lua.Unity/Assets/Lua.Unity/Editor/LuacAssetEditor.cs

@@ -20,7 +20,7 @@ namespace Lua.Unity.Editor
             if (asset == null) asset = (LuacAsset)serializedObject.targetObject;
             if (asset == null) asset = (LuacAsset)serializedObject.targetObject;
             if (bytes == null || !asset.bytes.AsSpan().SequenceEqual(bytes))
             if (bytes == null || !asset.bytes.AsSpan().SequenceEqual(bytes))
             {
             {
-                var prototype = Prototype.FromByteCode(asset.bytes.AsSpan(), asset.name);
+                var prototype = Prototype.FromBytecode(asset.bytes.AsSpan(), asset.name);
                 if (sb == null)
                 if (sb == null)
                     sb = new StringBuilder();
                     sb = new StringBuilder();
                 sb.Clear();
                 sb.Clear();