Water and electricity are a very dangerous mix. If you can safely access it, power off the generator. (See FAQ: How do I manually “power off” the generator set?) If it continues to run when submerged, internal damage to both engine and generator will be significant. If you can’t safely access the generator or the main-line disconnect, do not make any attempt to turn it off.