Ejemplo n.º 1
0
        /// <summary>
        /// To join a specific Room
        /// </summary>
        /// <param name="roomInfo">Contains information like name.</param>
        public void OnJoinRoomClicked(RoomInfo roomInfo)
        {
            m_doubleInput.RecordInput();

            if (m_doubleInput.RecordedDoubleInput())
            {
                m_roomSelected = true;
                OnRoomSelected?.Invoke();
                PhotonNetwork.JoinRoom(roomInfo.Name);
            }
        }