UnsubscribeToPulse() public method

Unsubscribes to the pulse.
public UnsubscribeToPulse ( IGATPulseClient client ) : void
client IGATPulseClient
return void
示例#1
0
        /// <summary>
        /// Unsubscribes to the pulse.
        /// </summary>
        protected void UnsubscribeToPulse()
        {
            if (_isSubscribed == false || _pulse == null)
            {
                return;
            }

            _pulse.UnsubscribeToPulse(this);
            _isSubscribed = false;
        }
示例#2
0
        protected override void OnDisable()
        {
            base.OnDisable();

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

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