SubscribeToPulse() public method

Subscribes to the pulse.
public SubscribeToPulse ( IGATPulseClient client ) : void
client IGATPulseClient
return void
Exemplo n.º 1
0
        /// <summary>
        /// If CanSubscribeToPulse() is true, will subscribe
        /// </summary>
        protected void SubscribeToPulseIfNeeded()
        {
            if (CanSubscribeToPulse() == false)
            {
                return;
            }

            _pulse.SubscribeToPulse(this);
            _isSubscribed = true;
        }
Exemplo n.º 2
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (_ParentPulse != null)
            {
                _ParentPulse.SubscribeToPulse(this);
            }

            _pulseInfo.Init(_Period, _Steps.Length);

                        #if UNITY_EDITOR
            if (Application.isPlaying == false)
            {
                EditorApplication.update += Update;
            }
                        #endif
        }