ByteClubGames / YumiAndTheYokai

Byte Club Games' first title!
11 stars 5 forks source link

FreezeWater #142

Closed James-Glynn closed 5 years ago

James-Glynn commented 5 years ago

Write a script that when attached to a GameObject, will simulate water turning into ice. This can be accomplished by toggling a box collider on and off so that when the water is "frozen," it can be walked on by the player.

You will also need to swap the shader that is currently attached to the water object to the ice shader. These links may be helpful in doing that: https://docs.unity3d.com/ScriptReference/Material-shader.html https://forum.unity.com/threads/changing-shader-at-runtime.131946/

Please make some sort of timer system that will unfreeze the water object after a given time.