diff --git a/Assets/Plugins/Slua_Managed/LuaObject.cs b/Assets/Plugins/Slua_Managed/LuaObject.cs index d0f984d2..2ea11da3 100644 --- a/Assets/Plugins/Slua_Managed/LuaObject.cs +++ b/Assets/Plugins/Slua_Managed/LuaObject.cs @@ -704,7 +704,7 @@ public static bool matchType(IntPtr l, int p, LuaTypes lt, Type t) if (t == typeof(LuaTable) || t.IsArray) return true; else if (t.IsValueType) - return true;//luaTypeCheck(l, p, t.Name); + return luaTypeCheck(l, p, t.Name); else if (LuaDLL.luaS_subclassof(l, p, t.Name) == 1) return true; else diff --git a/Assets/Plugins/Slua_Managed/SLogger.cs b/Assets/Plugins/Slua_Managed/SLogger.cs deleted file mode 100755 index da4b93cc..00000000 --- a/Assets/Plugins/Slua_Managed/SLogger.cs +++ /dev/null @@ -1,41 +0,0 @@ - - -using System; - -namespace com.tencent.pandora -{ - - /// - /// A bridge between UnityEngine.Debug.LogXXX and standalone.LogXXX - /// - internal class SLogger - { - public static void Log(string msg) - { -#if !SLUA_STANDALONE - Logger.Log(msg); -#else - Console.WriteLine(msg); -#endif - } - public static void LogError(string msg) - { -#if !SLUA_STANDALONE - Logger.LogError(msg); -#else - Console.WriteLine(msg); -#endif - } - - public static void LogWarning(string msg) - { -#if !SLUA_STANDALONE - Logger.LogWarning(msg); -#else - Console.WriteLine(msg); -#endif - } - } - - -} \ No newline at end of file