rlonau

About

Username
rlonau
Joined
Visits
107
Last Active
Roles
Registered
Points
7
Badges
2

Activity

  • wasifk308
    Here when i create a room from first person , room is created and when second person comes it joins the room, but when third person comes it creates new room ,while it should join the same room because the room have maxplayer =10.

    As there is joinrandomroom() function , So , i have tested multiple times but still third person creates new room.

    void Start () {
    competePlayeScale = true;
    PhotonNetwork.JoinRandomRoom();
    // PhotonNetwork.JoinOrCreateRoom ("room_", new RoomOptions{ MaxPlayers = 10 }, TypedLobby.Default);
    spawnPoint = new Vector3[]
    {
    new Vector3 (-1.2f, -17.1f, 35.1f),
    new Vector3 (15f,-16.9f, 35.4f),
    new Vector3 (-15f,-16.9f, 35.4f),
    new Vector3 (-40, 0, 0),
    new Vector3 (-20, 0, 0),
    new Vector3 (0, 0, 0) ,
    new Vector3 (20, 0, 0),
    new Vector3 (40, 0, 0),
    new Vector3 (60, 0, 0),
    new Vector3 (80, 0, 0)
    };

    }


    void OnCreatedRoom() {

    }

    void OnPhotonRandomJoinFailed() {

    PhotonNetwork.CreateRoom (null, new RoomOptions{ MaxPlayers = 10 }, null);

    } void OnJoinedRoom() {

    if (P
    July 13