static int _g_get_position(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.ui.UIJoystick __cl_gen_to_be_invoked = (xc.ui.UIJoystick)translator.FastGetCSObj(L, 1); translator.PushUnityEngineVector2(L, __cl_gen_to_be_invoked.position); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_IsFingerDown(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.ui.UIJoystick __cl_gen_to_be_invoked = (xc.ui.UIJoystick)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.IsFingerDown); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.ui.UIJoystick __cl_gen_ret = new xc.ui.UIJoystick(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.UIJoystick constructor!")); }
static int _m_ResetJoystick(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ui.UIJoystick __cl_gen_to_be_invoked = (xc.ui.UIJoystick)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.ResetJoystick( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }