Hi!
I am making a market system in a race game. when you choose a car in market, game changing avaible car’s sprite with chosen car’s sprite. In editor it works. But when ı built it to android phone sprite doesnt change. What is the problem. this is changing sprite code. Sorry for bad english.
public void ChangeSprite()
{
GameObject chosencar= GameObject.FindGameObjectWithTag("chosencar");
avaiblecar.GetComponent<SpriteRenderer>().sprite = chosencar.GetComponent<SpriteRenderer>().sprite;
}