예제 #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.A))
     {
         _realtime.Connect(roomName);
     }
 }
예제 #2
0
 private void ConnectToRoom(Realtime realtime)
 {
     if (!realtime.connected && !realtime.connecting)
     {
         realtime.Connect(ConnectionManager.CurrentRoomName);
     }
 }
예제 #3
0
    public void Start()
    {
        avatarManager.localAvatarPrefab = desktopAvatar;

        if (isVR)
        {
            avatarManager.localAvatarPrefab = vrAvatar;
        }


        realtime.Connect(roomName);
    }
예제 #4
0
        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);
        }