title: How to sync a variable through Photon PUN
body: <p>I need to sync a variable so all the players have the same value.
  I have tried with something like this</p>
  
  <pre><code>[PunRPC]
  void Setting ()
  {
  I = somevalue;
  //I Is my int
  }
  </code></pre>
  
  <p>And I call it the following way:</p>
  
  <pre><code>PhotonView PV = GetComponent&lt;PhotonView&gt;();
  PV.RPC("Setting", RPCTargets.All);
  </code></pre>
  
  <p>But the int value is null.
  What am I doing wrong?</p>