Tests.TestUpdatableManager.step C# (CSharp) Method

step() public method

public step ( int numUpdates ) : void
numUpdates int
return void
        public void step(int numUpdates)
        {
            for (int t = 0; t < numUpdates; t++) {

                foreach (TestableGameObject o in toAdd) {
                    objects.Add(o);
                }
                toAdd.Clear();

                foreach (TestableGameObject o in toRemove) {
                    objects.Remove(o);
                }
                toRemove.Clear();

                foreach (TestableGameObject obj in objects) {
                    obj.Update();
                }
            }
        }

Usage Example

Esempio n. 1
0
 protected void step(int frames)
 {
     mgr.step(frames);
 }