public void scheduleUpdate(System.Object target, int priority, bool paused){
tHashUpdateEntry hashElement = hashForUpdates.HASH_FIND_INT(target.GetHashCode());
if (hashElement!=null) {
if(CCDebug.COCOS2D_DEBUG>=1)
NSUtils.Assert(hashElement.entry.obj.markedForDeletion, "CCScheduler: You can't re-schedule an 'update' selector'. Unschedule it first");
// TODO : check if priority has changed!
hashElement.entry.obj.markedForDeletion = false;
return;
}
// most of the updates are going to be 0, that's way there
// is an special list for updates with priority 0
if (priority == 0){
appendIn (updates0, target, paused);
}
else if (priority < 0)
priorityIn (updatesNeg, target, priority, paused);
else // priority > 0
priorityIn (updatesPos, target, priority, paused);
}