Exemplo n.º 1
0
 void HandleNoise()
 {
     noise.SetNoise(scale, frequency, amplitude, octaves, noiseType);
     if (!noise.equals(oldNoise))
     {
         for (int i = 0; i < chunks.Length; ++i)
         {
             chunks[i].noise_generator = noise;
             chunks[i].isChanged       = true;
         }
         oldNoise.Clone(noise);
     }
 }