2D water script, player in water physics

Well I don’t know how to start with creating water in my 2D game, I did transparent sprite with box collider 2D isTrigger, and I tried to change gravity when my character will be in water, but it’s not working like i want. I want to create water like that (only to 16 second). Starbound Water Demo - YouTube

Put a collider on the water tiles, one that is triggable and that you can pass trhu, then add a tag to all these colliders called water…then in your movement script before moving you check to see if its on land or in water with the “OnTriggerEnter” method and compare them tags, if its on land play with default controller if its in water smooth all values from normal controller ,set them to half of the original value, including gravity"