public void removeAllActions()
 {
     for (int i = _targets.Count - 1; i >= 0; i--)
     {
         KeyValuePair <int, tHashElement> keyValue = _targets.ElementAt(i);
         removeAllActionsFromTarget(keyValue.Value.target);
     }
 }
Beispiel #2
0
 /** Unschedules all selectors and blocks from all targets with a minimum priority.
  * You should only call this with kCCPriorityNonSystemMin or higher.
  * @since v2.0.0
  */
 public void unscheduleAllWithMinPriority(int minPriority)
 {
     // Custom Selectors
     for (int i = hashForTimers.Count - 1; i >= 0; i--)
     {
         KeyValuePair <int, tHashTimerEntry> keyValue = hashForTimers.ElementAt(i);
         System.Object target = keyValue.Value.target;
         unscheduleAllForTarget(target);
     }
     // Updates selectors
     if (minPriority < 0)
     {
         for (utNode <tListEntry> tmp = updatesNeg.head; tmp != null; tmp = tmp.next)
         {
             utNode <tListEntry> entry = tmp;
             if (entry.obj.priority >= minPriority)
             {
                 unscheduleUpdateForTarget(entry.obj.target);
             }
         }
     }
     if (minPriority <= 0)
     {
         for (utNode <tListEntry> tmp = updates0.head; tmp != null; tmp = tmp.next)
         {
             utNode <tListEntry> entry = tmp;
             unscheduleUpdateForTarget(entry.obj.target);
         }
     }
     for (utNode <tListEntry> tmp = updatesPos.head; tmp != null; tmp = tmp.next)
     {
         utNode <tListEntry> entry = tmp;
         if (entry.obj.priority >= minPriority)
         {
             unscheduleUpdateForTarget(entry.obj.target);
         }
     }
 }