/// <summary>
            /// If change occurs while app is playing, the handler passed is invoked with the new value.
            /// </summary>
            /// <param name="handler">your desired handler</param>
            internal void LookForChange(HandleChange handler)
            {
                int newVal = currentValue;

                if (newVal != origValue && Application.isPlaying)
                {
                    handler(newVal);
                }
            }
Пример #2
0
 private void AttribsChanged(object sender, ListChangedEventArgs e)
 {
     HandleChange?.Invoke(sender, e);
 }