//----- method -----

        public LuaController()
        {
            LuaVector.RegisterAll();

            classTable = new Dictionary <Type, LuaClass>();

            LuaScript = new Script(CoreModules.Preset_Default)
            {
                Options =
                {
                    DebugPrint = log => Debug.Log(log),
                }
            };
        }
Beispiel #2
0
        //----- method -----

        public LuaController()
        {
            LuaVector.RegisterAll();

            classTable = new Dictionary <Type, LuaClass>();

            Script.GlobalOptions.RethrowExceptionNested = true;

            LuaScript = new Script(CoreModules.Preset_Default)
            {
                Options =
                {
                    UseLuaErrorLocations = true,
                    DebugPrint           = log => Debug.LogFormat("[Lua] {0}", log),
                }
            };
        }