示例#1
0
        //----------init------------
        public CCScheduler()
        {
            _timeScale = 1.0f;

            // used to trigger CCTimer#update
            updateSelector = "update";
//			impMethod = (TICK_IMP) [CCTimerTargetSelector instanceMethodForSelector:updateSelector];

            // updates with priority
            updates0       = new utList <tListEntry>();
            updatesNeg     = new utList <tListEntry>();
            updatesPos     = new utList <tListEntry>();
            hashForUpdates = new utHash <int, tHashUpdateEntry>();

            // selectors with interval
            currentTarget         = null;
            currentTargetSalvaged = false;
            hashForTimers         = new utHash <int, tHashTimerEntry>();
            updateHashLocked      = false;
            _paused = false;
        }
示例#2
0
 CCMaterialCache()
 {
     _materials = new utHash <Texture2D, Material> ();
 }
示例#3
0
 CCSpriteFrameCache()
 {
     _spriteFrames        = new utHash <string, CCSpriteFrame> ();
     _spriteFramesAliases = new utHash <string, string> ();
     _loadedFilenames     = new HashSet <string> ();
 }
 public CCActionManager()
 {
     _targets = new utHash <int, tHashElement>();
 }