Need to move the Array GameObject_ов from one scene to another.
Tried using DontDestroyOnLoad, but in another scene, the objects disappear from the array.
Is there a way to do this without saving methods for the Json type, etc.?
Or just by saving in one scene and parsing in another?
public GameObject myCollectionCard;
public GameObject myPullCard;
private void Awake()
myPullCard = new GameObject[myCollectionCard.transform.childCount];
public void GetMyPullCard()
for (int i = 0; i < myPullCard.Length; i++)
myPullCard[i] = myCollectionCard.transform.GetChild(i).gameObject;