Пример #1
0
 static public int ScaleByTransform_s(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             UnityEngine.ParticleSystem a1;
             checkType(l, 1, out a1);
             System.Single a2;
             checkType(l, 2, out a2);
             ParticleScaler.ScaleByTransform(a1, a2);
             return(0);
         }
         else if (argc == 3)
         {
             UnityEngine.GameObject a1;
             checkType(l, 1, out a1);
             System.Single a2;
             checkType(l, 2, out a2);
             System.Boolean a3;
             checkType(l, 3, out a3);
             ParticleScaler.ScaleByTransform(a1, a2, a3);
             return(0);
         }
         return(error(l, "No matched override function to call"));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public static void ScaleByTransform(this ParticleSystem particles, float scale, bool includeChildren = true)
 {
     ParticleScaler.ScaleByTransform(particles, scale, includeChildren);
 }