public Droplet(LiquidSettings theSettings, float startXPos, float startYPos, float startVolume, float startDirt)
 {
     xPos     = startXPos;
     yPos     = startYPos;
     settings = theSettings;
     volume   = startVolume;
     dirt     = startDirt;
 }
        public void MakeEroded(LiquidSettings liquidSettings, int dropCount)
        {
            for (int i = 0; i < dropCount; i++)
            {
                int xInd = Random.Range(0, map.resolution);
                int yInd = Random.Range(0, map.resolution);

                Droplet drop = new Droplet(liquidSettings, xInd, yInd, 1, 0);
                ErodeDroplet(drop);
            }
        }
        private static float[,] GetErosionBrush(LiquidSettings settings, float amount)
        {
            float[,] brush = settings.GetErosionBrush();
            int xLen = brush.GetLength(1);
            int yLen = brush.GetLength(0);

            for (int y = 0; y < yLen; y++)
            {
                for (int x = 0; x < xLen; x++)
                {
                    brush[y, x] *= amount;
                }
            }

            return(brush);
        }