コード例 #1
0
    void Start()
    {
        pubNubThreads = new PubnubThreads(Pubnub_SubscribeKey, Pubnub_PublishKey);

        // Subscribe to this SmartPoint's PubNub Channel
        pubNubThreads.Subscribe(Pubnub_Channel, DoSomething);
    }
コード例 #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);
    }