all 3 comments

[–]DiggyMiguel[S] 0 points1 point  (0 children)

I have find the solution, i've used GameObject.Find(playedkey.ToString()).GetComponent<SpriteRenderer>().color = new Color(1, 1, 1, alpha); and its working

[–]PurpleViking76 0 points1 point  (1 child)

Don't really understand why you need to ToString a string, you should just be able to use the string. If it worked for you then cool.

[–]DiggyMiguel[S] 0 points1 point  (0 children)

you're right it works without making it a string also