Beispiel #1
0
        public void OnClickInputNameRoomOk()
        {
            switch (_modeInput)
            {
            case InputNameRoomMode.Create:
                PhotonServer.CreateRoom(NameRoom.text);
                break;

            case InputNameRoomMode.Join:
                PhotonServer.JoinRoom(NameRoom.text);
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            Lock = true;
            PanelInputNameRoom.SetActive(false);
        }