You are using Renderer.material.color as opposed to renderer.material.color
Actually, you should use `GetComponent().material.color`
Also, please keep in mind the following things:
- When posting a question here, 'HELP ME PLEASE' is a terrible title. Instead, mention what type of problem you have in your title. This makes it easier for us to help, and also might help other people in the future with a similar problem.
- When posting long lines of code, use the code button so it is readable for other
- Basically respect peoples time on the forum
Good luck :)
↧