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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3[]>(L, 2))
                {
                    UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[]));

                    gen_to_be_invoked.SetPositions(_positions);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <Unity.Collections.NativeArray <UnityEngine.Vector3> >(L, 2))
                {
                    Unity.Collections.NativeArray <UnityEngine.Vector3> _positions; translator.Get(L, 2, out _positions);

                    gen_to_be_invoked.SetPositions(_positions);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <Unity.Collections.NativeSlice <UnityEngine.Vector3> >(L, 2))
                {
                    Unity.Collections.NativeSlice <UnityEngine.Vector3> _positions; translator.Get(L, 2, out _positions);

                    gen_to_be_invoked.SetPositions(_positions);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TrailRenderer.SetPositions!"));
        }
        static int _m_SetPositions(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[]));

                    gen_to_be_invoked.SetPositions(_positions);



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