static public int GetSafeTriggerParticlesSize(IntPtr l)
 {
     try {
         UnityEngine.ParticleSystem self = (UnityEngine.ParticleSystem)checkSelf(l);
         UnityEngine.ParticleSystemTriggerEventType a2;
         checkEnum(l, 2, out a2);
         var ret = self.GetSafeTriggerParticlesSize(a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#2
0
        static int _m_GetSafeTriggerParticlesSize(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);

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



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