Итерация через Photon Player GameObjects
[PunRPC]
public void RPC_SetPlayers() {
if(!PhotonNetwork.IsMasterClient) return;
GameObject[] playersArray = GameObject.FindGameObjectsWithTag("Player");
foreach(GameObject plr in playersArray) {
plr.GetComponent<PointToPointRace>().playersToPositions = true;
}
}
Elated Elk