I have instantiated multiple game objects like this part of the code:
GameObject newCard = Instantiate(CardPrefab, new Vector3(x, y, z), transform.rotation);
x,y and z being parameter so I could spawn the objects in different positions.
My question is how could I access the name of the Game objects or the properties from another script. Each of my game objects has a property which gives it a value.
In another script I want to add the values of all objects but I am not sure how to access the objects from another script to get their name and values.
Thanks for the support.