Использую Photon.Pun. При попытке зайти в созданную комнату ее просто не находит (JoinRoom failed. A roomname is required. If you don't know one, how will you join?)
Код кнопок подключения
using System.Collections;
using System.Collections.Generic;
using Photon.Pun;
using Photon.Realtime;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class RoomsConnector : MonoBehaviourPunCallbacks
{
[SerializeField] private TMP_InputField CreateField;
[SerializeField] private TMP_InputField JoinField;
public void CreateRoom()
{
RoomOptions roomOptions = new RoomOptions();
roomOptions.MaxPlayers = 20;
PhotonNetwork.CreateRoom(CreateField.text, roomOptions);
}
public void JoinRoom()
{
PhotonNetwork.JoinRoom(JoinField.text);
}
public override void OnJoinedRoom()
{
PhotonNetwork.LoadLevel("GameplayScene");
}
}