Please, someone would be so kind to explain what exactly is the difference between instantiating like this:
Instantiate(hero, new Vector3(mousePosX, mousePosY, 0), quaternion.identity);
and this:
GameObject newHero = Instantiate(hero, new Vector3(mousePosX, mousePosY, 0), quaternion.identity) as GameObject;
I tried both ways and can’t see anything different in the Hierarchy, or anywhere else.
Any light about the topic is greatly appreciated!
thanks!