private void generateRivers(){ River river = new River (); river.pathShader = pathShader; river.riverTexture = riverTexture; river.terrainSize = m_terrainSize; river.heightMapSize = m_heightMapSize; river.waterlimit = waterLimit; river.drawRivers (rivercorners, corners.Count); }