A 3D buoyancy script
Just use the script in the repo if you have any problems just submit issue and ill respond when i see it. Also i might update this script in the future.
In the buoyancy script replace main with the name of the player gameobject and in a player script put "public float seaLevel;".