Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public void CreateLocalPlayer();
  2. {
  3. //Notice the differences from PhotonNetwork.Instantiate to Unitys GameObject.Instantiate
  4. GameObject newShipObject = PhotonNetwork.Instantiate();
  5. "Ship",
  6. Vector3.zero,
  7. Quaternion.identity,
  8. 0,
  9. instantiationData
  10. );
  11. }
  12.  
  13. void OnJoinedRoom()
  14. {
  15. CreateLocalPlayer();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement