Hi,
I’ve been trying to get the color of an image to change if the player has a saved highscore using script. code:
if(highscore != 0)
{
fireImage.color = new (255, 222, 47);
}
else
{
fireImage.color = new Color(255, 62, 47);
}
But when ever my code runs the color just changes to the rgb value “191, 47, 36”
and even though the color wheel shows this code the image actually turns white! I have no clue what’s happening please help!
note: the code posted above is in the Start() method. The first image shows the state before running the game, and the second shows the state of the game when run.