void Awake()
    {
        SendBirdClient.SetupUnityDispatcher(gameObject);
        StartCoroutine(SendBirdClient.StartUnityDispatcher);

        SendBirdClient.Init("9DA1B1F4-0BE6-4DA8-82C5-2E81DAB56F23");          // SendBird Sample Application ID

        SendBirdClient.Log += (message) => {
            Debug.Log(message);
        };
    }
Example #2
0
    void Awake()
    {
        Instance = this;

        SendBirdClient.SetupUnityDispatcher(gameObject);             // Set SendBird gameobject to DontDestroyOnLoad.
        StartCoroutine(SendBirdClient.StartUnityDispatcher);         // Start a Unity dispatcher.

        SendBirdClient.Init("5311CDB0-4A1F-4DB2-8939-A26EC98290B5"); // SendBird Sample Application ID
        SendBirdClient.Log += (message) =>
        {
            Debug.Log(message);
        };
    }
Example #3
0
    private void Init()
    {
        coroutineHost = new GameObject().AddComponent <MonoHost>();
        SendBirdClient.SetupUnityDispatcher(coroutineHost.gameObject);
        coroutineHost.StartCoroutine(SendBirdClient.StartUnityDispatcher);

        SendBirdClient.Init("71CAF499-268F-49A3-A2F5-9DF09F275FB8");

        channelHandler = new SendBirdClient.ChannelHandler();
        chid           = channelHandler.GetHashCode().ToString();
        channelHandler.OnMessageReceived += ChannelHandler_OnMessageRecieved;
        SendBirdClient.AddChannelHandler(chid, channelHandler);
    }
    void  Awake()
    {
        SendBirdClient.SetupUnityDispatcher(gameObject);
        StartCoroutine(SendBirdClient.StartUnityDispatcher);

        SendBirdClient.Init("44153C8C-8CEB-468C-AAA3-1278F203B60F");          // SendBird Sample Application ID
        SendBirdClient.Log += (message) => {
            Debug.Log(message);
        };

        UnityARSessionNativeInterface.ARUserAnchorAddedEvent   += AddAnchor;
        UnityARSessionNativeInterface.ARUserAnchorRemovedEvent += RemoveAnchor;
        m_Clones        = new HashSet <string>();
        m_messages      = new Hashtable();
        origLocation    = GameObject.Find("OriginalLocation");
        locationManager = origLocation.GetComponent <LocationManager>();
    }