예제 #1
0
        public void JoinOrCreateRoom(RoomOptions options)
        {
            m_roomOptionsCache = options;
            var roomName = (string)options.CustomRoomProperties[ROOM_NAME];

            PhotonNetwork.JoinOrCreateRoom(roomName, options, default);
            OnJoinRoomStartEvent?.Invoke();
        }
예제 #2
0
        public void CreateRoom(RoomOptions options)
        {
            var roomName = (string)options.CustomRoomProperties[ROOM_NAME];

            m_roomOptionsCache = options;
            PhotonNetwork.CreateRoom(roomName, options, default);
            OnJoinRoomStartEvent?.Invoke();

            //var name= (string)ProjectManager.Instance.Client.Launcher.CurrentRoom.CustomProperties[ROOM_NAME];
        }