public void updatePages()
{
// Loop through the array and add the screens if needed.
int i = 0;
var enumerator = layers_.GetEnumerator();
while (enumerator.MoveNext()) {
var l = enumerator.Current;
l.anchorPoint = Vector2.zero;
l.contentSize = CCDirector.sharedDirector.winSize;
l.position = new Vector2( (i * (this.contentSize.x - this.pagesWidthOffset)), 0 );
if (l.parent == null)
this.addChild(l);
i++;
}
}