Example #1
0
        static int _s_set__luaOnDestroy(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PathTestProject.CubeScripts gen_to_be_invoked = (PathTestProject.CubeScripts)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked._luaOnDestroy = translator.GetDelegate <System.Action>(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #2
0
        static int _s_set__scriptEve(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PathTestProject.CubeScripts gen_to_be_invoked = (PathTestProject.CubeScripts)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked._scriptEve = (XLua.LuaTable)translator.GetObject(L, 2, typeof(XLua.LuaTable));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #3
0
        static int _s_set__cubeScriptsAsset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PathTestProject.CubeScripts gen_to_be_invoked = (PathTestProject.CubeScripts)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked._cubeScriptsAsset = (UnityEngine.TextAsset)translator.GetObject(L, 2, typeof(UnityEngine.TextAsset));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #4
0
        static int _g_get__luaUpDate(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                PathTestProject.CubeScripts gen_to_be_invoked = (PathTestProject.CubeScripts)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked._luaUpDate);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Example #5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    PathTestProject.CubeScripts gen_ret = new PathTestProject.CubeScripts();
                    translator.Push(L, 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 PathTestProject.CubeScripts constructor!"));
        }
Example #6
0
        static int _m_Awake(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                PathTestProject.CubeScripts gen_to_be_invoked = (PathTestProject.CubeScripts)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Awake(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Example #7
0
        static int _m_SetMaterial(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                PathTestProject.CubeScripts gen_to_be_invoked = (PathTestProject.CubeScripts)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material));

                    gen_to_be_invoked.SetMaterial(_mat);



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