Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void CreateLocalPlayer();
- {
- //Notice the differences from PhotonNetwork.Instantiate to Unitys GameObject.Instantiate
- GameObject newShipObject = PhotonNetwork.Instantiate();
- "Ship",
- Vector3.zero,
- Quaternion.identity,
- 0,
- instantiationData
- );
- }
- void OnJoinedRoom()
- {
- CreateLocalPlayer();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement