
Unity
4
Вклад в тег
public GameObject obj
void OnMouseExit()
{
obj.color = new Color32(0, 0, 0, 0);
}
private void OnApplicationQuit()
{
PlayerPrefs.SetInt("Key1", Score);
}
private void Awake()
{
Score = PlayerPrefs.GetInt("Key1", 0);
}