How to number the instantiated object after spawning it

Like give it a number in the levelmanager script
Like 1,2,3,4 or player1,player2

@leofong How about this: on the object, you’re instantiating, have a script that just has one line in it: public string identity = ""; and in the bit of code that’s instantiating this object, have something like this: GameObject objectYouAreInstantiating = GameObject.Instantiate(theObject, position, Quaternion.Identity); objectYouAreInstantiating.GetComponent().identity = "player1";

And if you want just numbers, replace the strings with ints.
Hope that helps!