Browse Source

add: luac asset

Akeit0 6 months ago
parent
commit
0a9bbfc660

+ 15 - 0
src/Lua.Unity/Assets/Lua.Unity/Runtime/LuacAsset.cs

@@ -0,0 +1,15 @@
+using UnityEngine;
+
+namespace Lua.Unity
+{
+    public sealed class LuacAsset : LuaAssetBase
+    {
+        [HideInInspector]
+        [SerializeField] internal byte[] bytes;
+        public byte[] Bytes => bytes;
+        public override LuaModule GetModule(string searchedName)
+        {
+             return new LuaModule(searchedName,bytes);
+        }
+    }
+}

+ 2 - 2
src/Lua.Unity/Assets/Lua.Unity/Runtime/LuacAsset.cs.meta

@@ -1,3 +1,3 @@
 fileFormatVersion: 2
-guid: 30eb0281e6634717972999b1cd6da5ad
-timeCreated: 1749868419
+guid: b8303e0c721c4fc3829ce6b681f6dae0
+timeCreated: 1749869951