PhotonNetwork.JoinRoom C# (CSharp) Method

JoinRoom() public static method

Join room by room.Name. This fails if the room is either full or no longer available (might close at the same time).
public static JoinRoom ( RoomInfo listedRoom ) : void
listedRoom RoomInfo
return void
    public static void JoinRoom(RoomInfo listedRoom)
    {
        if (listedRoom == null)
        {
            Debug.LogError("JoinRoom aborted: you passed a NULL room");
            return;
        }

        JoinRoom(listedRoom.name);
    }

Same methods

PhotonNetwork::JoinRoom ( string roomName ) : void

Usage Example

Ejemplo n.º 1
0
 public void OnClick_Button()
 {
     PhotonNetwork.JoinRoom(RoomInfo.Name);
 }
All Usage Examples Of PhotonNetwork::JoinRoom