static int GetWordAtCharacterIndex(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); UILabel obj = (UILabel)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UILabel"); int arg0 = (int)LuaScriptMgr.GetNumber(L, 2); string o = obj.GetWordAtCharacterIndex(arg0); LuaScriptMgr.Push(L, o); return(1); }
static public int GetWordAtCharacterIndex(IntPtr l) { try { UILabel self = (UILabel)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); var ret = self.GetWordAtCharacterIndex(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static int GetWordAtCharacterIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UILabel obj = (UILabel)ToLua.CheckObject<UILabel>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); string o = obj.GetWordAtCharacterIndex(arg0); LuaDLL.lua_pushstring(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } }
public static int GetWordAtCharacterIndex(IntPtr l) { int result; try { UILabel uILabel = (UILabel)LuaObject.checkSelf(l); int characterIndex; LuaObject.checkType(l, 2, out characterIndex); string wordAtCharacterIndex = uILabel.GetWordAtCharacterIndex(characterIndex); LuaObject.pushValue(l, true); LuaObject.pushValue(l, wordAtCharacterIndex); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }