void Start() { Connected = false; randomSuffix = UnityEngine.Random.Range(1, int.MaxValue).ToString(); Notifier.AddSubscriber( PingReceived, "Ping" + randomSuffix, Client.SEND_SCOPE ); SendPing(); // Send immediately }
/// <summary> /// Subscribe to the Notifier with this listener's data. /// </summary> void Subscribe() { Notifier.AddSubscriber(Intercept, lastLabel, Scope); }