static public int GetTriggerParticles(IntPtr l)
 {
     try {
         UnityEngine.ParticleSystem self = (UnityEngine.ParticleSystem)checkSelf(l);
         UnityEngine.ParticleSystemTriggerEventType a2;
         checkEnum(l, 2, out a2);
         System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> a3;
         checkType(l, 3, out a3);
         var ret = self.GetTriggerParticles(a2, a3);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #2
0
        static int _m_GetTriggerParticles(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    UnityEngine.ParticleSystemTriggerEventType type; translator.Get(L, 2, out type);
                    System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> particles = (System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>));

                    int __cl_gen_ret = __cl_gen_to_be_invoked.GetTriggerParticles(type, particles);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



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