コード例 #1
0
 public static void Scale(ParticleSystem particles, float scale, bool includeChildren = true, ParticleScalerOptions options = null)
 {
     ParticleScaler.ScaleSystem(particles, scale, false, options);
     if (includeChildren)
     {
         ParticleSystem[] componentsInChildren = particles.GetComponentsInChildren <ParticleSystem>();
         int num = componentsInChildren.Length;
         while (num-- > 0)
         {
             if (!(componentsInChildren[num] == particles))
             {
                 ParticleScaler.ScaleSystem(componentsInChildren[num], scale, true, options);
             }
         }
     }
 }
コード例 #2
0
 static public int ScaleSystem_s(IntPtr l)
 {
     try {
         UnityEngine.GameObject a1;
         checkType(l, 1, out a1);
         System.Single a2;
         checkType(l, 2, out a2);
         System.Boolean a3;
         checkType(l, 3, out a3);
         ParticleScalerOptions a4;
         checkType(l, 4, out a4);
         ParticleScaler.ScaleSystem(a1, a2, a3, a4);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }