Hi, I am trying to change the colors of the buttons when a statement is true.
void Start()
{
if ((int.Parse(gameObject.name)) >= GameController.Instance.CurrentLevel + 1)
{
gameObject.GetComponent<Image>().color = new Color(96, 96, 96, 255);
}
}
i thought it was like this but the colors won’t change when loaded. Does anyone see the problem?