Closed James-Glynn closed 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.
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.