static public int TriggerSubEmitter__Int32(IntPtr l)
 {
     try {
         UnityEngine.ParticleSystem self = (UnityEngine.ParticleSystem)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         self.TriggerSubEmitter(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int TriggerSubEmitter__Int32__List_1_Particle(IntPtr l)
 {
     try {
         UnityEngine.ParticleSystem self = (UnityEngine.ParticleSystem)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> a2;
         checkType(l, 3, out a2);
         self.TriggerSubEmitter(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 3
0
    static int TriggerSubEmitter(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                obj.TriggerSubEmitter(arg0);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.ParticleSystem.Particle>(L, 3))
            {
                UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                UnityEngine.ParticleSystem.Particle arg1 = StackTraits <UnityEngine.ParticleSystem.Particle> .To(L, 3);

                obj.TriggerSubEmitter(arg0, ref arg1);
                ToLua.PushValue(L, arg1);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> >(L, 3))
            {
                UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> arg1 = (System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>)ToLua.ToObject(L, 3);
                obj.TriggerSubEmitter(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.ParticleSystem.TriggerSubEmitter"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }