Language

question about a script

I was working on a quiz from a yt channel called Brackeys, and new version of Unity doesnt do the animation in the same way anymore as shown in the video, so instead of animating I want to add a script that will on click change the color of panel to green if correct , and it will change collor to red if incorrect( also maybe It will change the collor of an object to red and another one to green when clicked( if you know what I mean))

so at 16:27 he starts working on some scripts in which I would like to put scripts that say" if correct then collor changes to green and if false collor changes to false" I am a complete beginer and i really hope that you understand what i am asking you. Thank you in advance.