What's hard about
1. Visit the [scripting reference][1]
2. Click runtime classes in the menu bar on the left
3. In your browser do a search for "light"
4. Follow the link to get to http://docs.unity3d.com/Documentation/ScriptReference/Light.html
5. Click on "[color][2]" to get a small code example that shows how you can change the light colour.
6. Ditto "[spotAngle][3]".
7. Scroll down the Light page a little to see the `enabled` property, which turns the light on and off.
[1]: http://docs.unity3d.com/Documentation/ScriptReference/index.html
[2]: http://docs.unity3d.com/Documentation/ScriptReference/Light-color.html
[3]: http://docs.unity3d.com/Documentation/ScriptReference/Light-spotAngle.html
↧