How to change the color of my text object?


I’m currently following this tutorial on how to make a main menu for my game. However, it seems the code is old and I can’t figure out how to correct it. I want my text object for the main menu to change from white to black as a test for now. I found a few other Unity pages that gave solutions but that code must be old too as it isn’t working? Any help would be appreciated, thanks

Text.color = new Color (float r, float g, float b);
Let me know if you need it in JS!