void Update() { if (Input.GetKeyDown(KeyCode.A)) { _realtime.Connect(roomName); } }
private void ConnectToRoom(Realtime realtime) { if (!realtime.connected && !realtime.connecting) { realtime.Connect(ConnectionManager.CurrentRoomName); } }
public void Start() { avatarManager.localAvatarPrefab = desktopAvatar; if (isVR) { avatarManager.localAvatarPrefab = vrAvatar; } realtime.Connect(roomName); }
private void Initialize(string roomName) { Realtime instance = Realtime.instances.SingleOrDefault(); if (instance == null) { Debug.LogError("No realtime isntances found. Cannot initiate connect."); return; } networkReconnect.Inject(instance); CurrentRoomName = roomName; isInitialized = true; instance.Connect(roomName); }