Question by 
               threecatsgamers · Jan 14, 2021 at 09:56 AM · 
                gameobjectinstantiateprefabunity 2dinstantiate prefab  
              
 
              All instantiated objects having same location,
hi,
I have a "Player" object as a Prefab. I am trying to have both Hero and Enemy game objects of type "Player" instantiated from my main gamelogic script. So i am trying the below :
But I end up getting both hero and enemy appearing in the same location.
Not sure why this is so?
  public GameObject Hero;
  public GameObject Enemy;
 void Start()
 {
     Instantiate(Hero);
     Instantiate(Enemy, new Vector3(300,139,0),Quaternion.identity);
 },
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                