How to close room ?

Hi,

I just want to close the room when the room is full.

At the start, when I create the room
  RoomOptions newRoomOptions = new RoomOptions();
            newRoomOptions.isOpen = true;
            newRoomOptions.isVisible = true;
            newRoomOptions.maxPlayers = 4;


Then , How can I close the room ?

Comments

  • PhotonNetwork.room.open = false;
    

    Sometimes, thing are too simple to be found.