Unity has a [Time][1] class that can tell you how time is changing. There is also a [MeshRenderer][2] class that gives you access to the materials a mesh contains.
[1]: http://docs.unity3d.com/ScriptReference/Time.html
[2]: http://docs.unity3d.com/ScriptReference/MeshRenderer.html
↧