title: Trouble setting camera follow target up
body: <p>I have a game object instantiated using photon network as so:</p>
  
  <pre><code>GameObject myPlayerGO = (GameObject)PhotonNetwork.Instantiate("PlayerModel", mySpawnSpot.transform.position, mySpawnSpot.transform.rotation, 0);
  </code></pre>
  
  <p>This script sits in a SCRIPT game object in my scene. ie,
  <img src="https://i.stack.imgur.com/MxYSJ.png" alt="enter image description here"></p>
  
  <p>I want to have my camera called "Camera" with the smoothfollow script setup as follows:
  <img src="https://i.stack.imgur.com/Y6n5m.png" alt="enter image description here"></p>
  
  <p>I basically want to set the target of the smooth follow script to the game object instantiated by Photon Network.</p>
  
  <p>I've tried various variations of the code:</p>
  
  <pre><code>GameObject.Find("Camera").GetComponent&lt;SmoothFollow&gt;().target = myPlayerGO;
  GameObject.Find("Camera").GetComponent("SmoothFollow").target = myPlayerGO;
  GameObject.Find("Camera").GetComponent(SmoothFollow).target = myPlayerGO;
  </code></pre>
  
  <p>But get various different errors not letting me do this. All the documentation and other forum posts i've found suggested that this code should work.</p>
  
  <p>If someone could tell me what I'm doing wrong that would be great</p>
  
  <p>Normally I would just have the camera part of the game object, but I'm using a script to make my gameobject turn towards my mouse, and it does funny thing with the camera.</p>