Пример #1
0
        protected internal void AddOverlap(BroadPhaseOverlap overlap)
        {
            bool taken = false;

            overlapAddLock.Enter(ref taken);
            //overlapAddLock.Enter();
            overlaps.Add(overlap);
            overlapAddLock.Exit();
        }
Пример #2
0
 protected internal void AddOverlap(BroadPhaseOverlap overlap)
 {
     overlapAddLock.Enter();
     overlaps.Add(overlap);
     overlapAddLock.Exit();
 }