Is there any difference in using tranform or GameObject instantiate?
I.e.
In both examples I dragged&dropped a prefab to the NPC variable in the inspector?
public GameObject NPC;
myObject = Instantiate (NPC, ekiPos, Quaternion.identity)
public Tranform NPC;
myObject = Instantiate (NPC, ekiPos, Quaternion.identity)
If a game object, component or script
instance is passed, Instantiate will
clone the entire game object
hierarchy, with all children cloned as
well. All game objects are activated.
...
Instantiate can also clone script
instances directly. The entire game
object hierarchy will be cloned and
the cloned script instance will be
returned.