Join to room with save proggress

Options
How can you do that the player is running around the scene - map_1 , and at the same time searching for the room with the same scene - map_1 with other players. And when he finds it, he joins it with his progress saved
For the player, other players just suddenly appear.

Answers

  • iamtagir
    iamtagir
    edited September 2019
    Options
    My decision:
    On joined to room destroy "Player" and create new one with same position
    
    GameObject player;
    public override void OnJoinedRoom()
        {
            GameObject go = PhotonNetwork.Instantiate("player", player.transform.position, player.transform.rotation);
            Destroy(player);
            player = go;
        }