Exemplo n.º 1
0
    public static int IsChildOf(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsObject(L, 2))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            UnityEngine.Transform arg1 = (UnityEngine.Transform)LuaCallback.ToObject(L, 2);
            System.Boolean        res  = arg0.IsChildOf(arg1);
            LuaCallback.PushBool(L, res);
            return(1);
        }
        return(0);
    }
Exemplo n.º 2
0
        public static int IsChildOf(IntPtr L)
        {
            int result = 1;
            int count  = LuaDLL.lua_gettop(L);

            if (count != 2)
            {
                LuaStatic.traceback(L, "count not enough");
                LuaDLL.lua_error(L);
                return(result);
            }
            UnityEngine.Transform obj  = LuaStatic.GetObj(L, 1) as UnityEngine.Transform;
            UnityEngine.Transform arg1 = (UnityEngine.Transform)LuaStatic.GetObj(L, 2);
            LuaDLL.lua_pushboolean(L, obj.IsChildOf(arg1));
            return(result);
        }
Exemplo n.º 3
0
        int UnityEngineTransform_m_IsChildOf(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


            UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1);


            {
                UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));

                bool gen_ret = gen_to_be_invoked.IsChildOf(_parent);
                LuaAPI.lua_pushboolean(L, gen_ret);



                return(1);
            }
        }
        static int _m_IsChildOf(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.Transform __cl_gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.Transform parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsChildOf(parent);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }