Esempio n. 1
0
    private void _pubSub_OnPubSubServiceConnected(object sender, EventArgs e)
    {
        UnityEngine.Debug.Log("Twitch PubSubServiceConnected!");

        // On connect listen to Bits evadsent
        // Please note that listening to the whisper events requires the chat_login scope in the OAuth token.
        _pubSub.ListenToRewards(CurrentChannel.id);

        // SendTopics accepts an oauth optionally, which is necessary for some topics, such as bit events.
        _pubSub.SendTopics(Secrets.OAUTH_TOKEN);

        PubSubConnected = true;
    }