void Start() { pubNubThreads = new PubnubThreads(Pubnub_SubscribeKey, Pubnub_PublishKey); // Subscribe to this SmartPoint's PubNub Channel pubNubThreads.Subscribe(Pubnub_Channel, DoSomething); }
// **************************************************************************************************** // 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); }