|
|
@@ -8,6 +8,7 @@ public class UILocalizeTextureWrap
|
|
|
{
|
|
|
L.BeginClass(typeof(UILocalizeTexture), typeof(UnityEngine.MonoBehaviour));
|
|
|
L.RegFunction("Refresh", Refresh);
|
|
|
+ L.RegFunction("SetKey", SetKey);
|
|
|
L.RegFunction("Dispose", Dispose);
|
|
|
L.RegFunction("__eq", op_Equality);
|
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|
|
@@ -31,6 +32,23 @@ public class UILocalizeTextureWrap
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+ static int SetKey(IntPtr L)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ ToLua.CheckArgsCount(L, 2);
|
|
|
+ UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject<UILocalizeTexture>(L, 1);
|
|
|
+ string arg0 = ToLua.CheckString(L, 2);
|
|
|
+ obj.SetKey(arg0);
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ return LuaDLL.toluaL_exception(L, e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
static int Dispose(IntPtr L)
|
|
|
{
|