static public int GetCollisionEvents(IntPtr l)
 {
     try {
         UnityEngine.ParticleSystem self = (UnityEngine.ParticleSystem)checkSelf(l);
         UnityEngine.GameObject     a1;
         checkType(l, 2, out a1);
         UnityEngine.ParticleSystem.CollisionEvent[] a2;
         checkType(l, 3, out a2);
         var ret = self.GetCollisionEvents(a1, a2);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static public int GetCollisionEvents(IntPtr l)
 {
     try {
         UnityEngine.ParticleSystem self = (UnityEngine.ParticleSystem)checkSelf(l);
         UnityEngine.GameObject     a1;
         checkType(l, 2, out a1);
         UnityEngine.ParticleSystem.CollisionEvent[] a2;
         checkArray(l, 3, out a2);
         var ret = self.GetCollisionEvents(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 3
0
 static int GetCollisionEvents(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UnityEngine.ParticleSystem obj  = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
         UnityEngine.GameObject     arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         UnityEngine.ParticleSystem.CollisionEvent[] arg1 = ToLua.CheckStructArray <UnityEngine.ParticleSystem.CollisionEvent>(L, 3);
         int o = obj.GetCollisionEvents(arg0, arg1);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static public int GetCollisionEvents(IntPtr l)
 {
     try {
         UnityEngine.ParticleSystem self = (UnityEngine.ParticleSystem)checkSelf(l);
         UnityEngine.GameObject     a2;
         checkType(l, 2, out a2);
         System.Collections.Generic.List <UnityEngine.ParticleCollisionEvent> a3;
         checkType(l, 3, out a3);
         var ret = self.GetCollisionEvents(a2, a3);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 5
0
        static int _m_GetCollisionEvents(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    UnityEngine.GameObject go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    System.Collections.Generic.List <UnityEngine.ParticleCollisionEvent> collisionEvents = (System.Collections.Generic.List <UnityEngine.ParticleCollisionEvent>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.ParticleCollisionEvent>));

                    int __cl_gen_ret = __cl_gen_to_be_invoked.GetCollisionEvents(go, collisionEvents);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



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