public void SaveLvlList(string keyName, int CountStars)
{
PlayerPrefs.SetString(keyName, JsonUtility.ToJson(CountStars));
PlayerPrefs.Save();
}
Script1 = GameObject.Find("объект на котором скрипт").GetComponent<Script1>();
if(YourObject.transform.childCount == 0)
{
}