How to sync position only one time, using Photon Networking
Yuval
✭
I want to do the following.
When a player joins the room, he should receive all the gameobjects' (with a photonview) locations.
This should happen only once when the player enters the room.
How could this be implemented?
When a player joins the room, he should receive all the gameobjects' (with a photonview) locations.
This should happen only once when the player enters the room.
How could this be implemented?
0
Answers
-
public void OnJoinedRoom() {
List photonviews= Object.FindObjectsOfType();
List locations= new List();
foreach( var photonview in photonviews)
{
locations.Add(photonview.transform.position);
}
}
0