public void AddTouchInputSource(ITouchInputSource source) { if (UnityTools.IsNullOrDestroyed <ITouchInputSource>((M0)source)) { throw new ArgumentNullException(nameof(source)); } this.m_UserDefaultTouchInputSource = source; }
/// <summary> /// Adds the touch input source. /// </summary> /// <param name="source">The touch input source.</param> public void AddTouchInputSource(ITouchInputSource source) { if (Utils.UnityTools.IsNullOrDestroyed(source)) { throw new ArgumentNullException("source"); } m_UserDefaultTouchInputSource = source; }
/// <summary> /// Removes the touch input source. /// </summary> /// <param name="source">The touch input source.</param> public void RemoveTouchInputSource(ITouchInputSource source) { if (source == null) { throw new ArgumentNullException("source"); // do not check if destroyed here so removal works on destroyed objects } if (m_UserDefaultTouchInputSource == source) { m_UserDefaultTouchInputSource = null; } }
// Token: 0x06002D36 RID: 11574 RVA: 0x000129DD File Offset: 0x00010BDD public void RemoveTouchInputSource(ITouchInputSource source) { if (source == null) { throw new ArgumentNullException("source"); } if (this.m_UserDefaultTouchInputSource == source) { this.m_UserDefaultTouchInputSource = null; } }
public void RemoveTouchInputSource(ITouchInputSource source) { if (source == null) { throw new ArgumentNullException(nameof(source)); } if (this.m_UserDefaultTouchInputSource != source) { return; } this.m_UserDefaultTouchInputSource = (ITouchInputSource)null; }