title: Set transform from another GameObject's script
body: <p>I'm trying to make a script to set an object when is being instantiated. The problem is, I don't clearly know how to do it. I have this function..</p>
  
  <pre><code>function spawnPlayer()
  {
      var CameraScript = GameObject.Find(PlayerPrefab.name).GetComponent("Camera Control");
      Network.Instantiate(PlayerPrefab, spawnObject.position, Quaternion.identity, 0);
  }
  </code></pre>
  
  <p>Where PlayerPrefab is going to be the Prefab that's going to be instantiated. When this happens, I need to set the instantiated gameObject on another GameObject which is camera and has a script called "Camera Control" and inside there's a transform Target which I'm trying to set. How to do this?</p>