Пример #1
0
        static int _m_HitTest(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.IHitTest gen_to_be_invoked = (FairyGUI.IHitTest)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Rect    _contentRect; translator.Get(L, 2, out _contentRect);
                    UnityEngine.Vector2 _localPoint; translator.Get(L, 3, out _localPoint);

                    bool gen_ret = gen_to_be_invoked.HitTest(_contentRect, _localPoint);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #2
0
    static int set_hitArea(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.Container obj  = (FairyGUI.Container)o;
            FairyGUI.IHitTest  arg0 = (FairyGUI.IHitTest)ToLua.CheckObject <FairyGUI.IHitTest>(L, 2);
            obj.hitArea = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index hitArea on a nil value"));
        }
    }
Пример #3
0
    static int get_hitArea(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.Container obj = (FairyGUI.Container)o;
            FairyGUI.IHitTest  ret = obj.hitArea;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index hitArea on a nil value"));
        }
    }