Синтаксис:
Используется csharp
private int n;
public GameObject[] red,blue;
public SpriteRenderer lefticon,righticon;
public Color[] leftcolor,rightcolor;
void Awake()
{
n=PlayerPrefs.GetInt("skins");
red[].SetActive(false);
blue[].SetActive(false);
red[n].SetActive(true);
blue[n].SetActive(true);
lefticon.color=leftcolor[n];
righticon.color=rightcolor[n];
}
public GameObject[] red,blue;
public SpriteRenderer lefticon,righticon;
public Color[] leftcolor,rightcolor;
void Awake()
{
n=PlayerPrefs.GetInt("skins");
red[].SetActive(false);
blue[].SetActive(false);
red[n].SetActive(true);
blue[n].SetActive(true);
lefticon.color=leftcolor[n];
righticon.color=rightcolor[n];
}