public async void JoinOrCreateRoom() { try { this._chatHub = StreamingHubClient.Connect <IChatHub, IChatHubReceiver>(MagicOnionManager.Instance.Channel, this); await _chatHub.JoinChat(new JoinOrCreateRoomMesg(LocalPlayer.RoomName, LocalPlayer.PlayerName)); _waitDisConnect(); IsJoin = true; } catch (Exception e) { Debug.LogException(e); } }