Exemple #1
0
        private void refresh()
        {
            bool shouldFire = recalculate();

            if (shouldFire)
            {
                OnBoundingBoxWithChildrenChanged.Invoke();
            }
        }
Exemple #2
0
 public void Unlock()
 {
     if (Interlocked.Decrement(ref _pendingLocks) > 0)
     {
         return;
     }
     if (Interlocked.Exchange(ref _shouldFireOnUnlock, 0) >= 1)
     {
         OnBoundingBoxWithChildrenChanged.Invoke();
     }
 }