I don't do Unity, however, that error in C# usually means that you have not initialised the class before using it. Somewhere in your code you need to create a reference:
private OceanE oceanE;
and then initialise it:
OceanE = new oceanE();
Same with inner objects:
public class OceanE : MonoBehaviour
{
public GameObject Ocean = new GameObject();
}
Once initialised, then you can work with it...
Not sure what this line is doing though:
water += OceanE.Ocean;
Maybe, the GameObject overrides the operator
+
for objects... you can read more about it here:
Operator overloading - Define unary, arithmetic, equality, and comparison operators. | Microsoft Learn[
^]