update handling of Lua assets

This commit is contained in:
aliaksei.kalosha
2025-04-12 18:16:57 +02:00
parent a07a715d19
commit ecb1422937
15 changed files with 930 additions and 18 deletions

View File

@@ -2,10 +2,14 @@ using UnityEngine;
namespace Splashedit.RuntimeCode
{
[CreateAssetMenu(fileName = "NewLuaScript", menuName = "Lua Script", order = 1)]
public class LuaFile : ScriptableObject
{
public TextAsset luaScript;
[SerializeField] private string luaScript;
public string LuaScript => luaScript;
public void Init(string luaCode)
{
luaScript = luaCode;
}
}
}