Exemplo n.º 1
0
 public void CreateNewRoom()
 {
     if (m_roomName.text != "")
     {
         PhotonNetwork.CreateRoom(m_roomName.text, new RoomOptions()
         {
             MaxPlayers = m_playersCount, IsOpen = true, IsVisible = true
         }, m_UI_manager.GetLobbyName());
     }
     else
     {
         PhotonNetwork.CreateRoom("Phoenix's Room", new RoomOptions()
         {
             MaxPlayers = m_playersCount, IsOpen = true, IsVisible = true
         }, m_UI_manager.GetLobbyName());
     }
 }