Esempio n. 1
0
    void Start()
    {
        pubNubThreads = new PubnubThreads(Pubnub_SubscribeKey, Pubnub_PublishKey);

        // Subscribe to this SmartPoint's PubNub Channel
        pubNubThreads.Subscribe(Pubnub_Channel, DoSomething);
    }
Esempio n. 2
0
    // ****************************************************************************************************
    // Overloaded MonoBehaviour Functions
    // ****************************************************************************************************
    #region MonoBehaviour_Functions
    void Start()
    {
        pubNubThreads = new PubnubThreads(Pubnub_SubscribeKey, Pubnub_PublishKey);

        // Subscribe to this SmartPoint's PubNub Channel
        pubNubThreads.Subscribe(Pubnub_Channel, DoSomething);
    }