public override void Init() { Env env = App[typeof(Env).ToString()] as Env; // env.SetDebugLevel(DebugLevels.Prod); App.On(ApplicationEvents.OnApplicationStartComplete, (sender, e) => { string scriptCode = "CS.UnityEngine.Debug.Log('hello world')"; UnityEngine.Debug.Log("Lua code : " + scriptCode); ILua luaEngine = App.Make <ILua>(); luaEngine.DoString("require 'HelloworldLua' "); // luaEngine.ExecuteScriptByFile("text/lua","good.lua"); }); }