title: Unity (photon/network): how to instantiate object at same position your local player is at?
body: <p>I'm trying to instantiate 2d bullet under my player with this:</p>
  
  
  
  <pre class="lang-c# prettyprint-override"><code>using UnityEngine;
  using System.IO;
  
  public class Network_Shoot : Photon.MonoBehaviour {
  
      public void OnClick_Shoot()
      {
          if (photonView.isMine) 
          {
              PhotonNetwork.Instantiate (Path.Combine ("prefabs", "Network Bullet"), transform.position, transform.rotation, 0);
          }
      }
  
  }
  </code></pre>
  
  <p>In the inspector I've set <code>OnClick()</code>-event to the script in the player prefab that triggers this method. Method gets called but the bullet is always instantiated at position <code>0, 0, 0</code> with rotation <code>0, 0, 0</code>. If I do</p>
  
  <pre class="lang-c# prettyprint-override"><code>void Update()
  {
      Debug.Log(transform.position);
  }
  </code></pre>
  
  <p>I get the real position in my console. What is causing this? </p>