private bool MoveNext() { if (this.meshEnumerator != null) { while (this.meshEnumerator.MoveNext()) { TreeUnpack treeUnpack = this; treeUnpack.currentTreeIndex = treeUnpack.currentTreeIndex + 1; this.currentMesh = this.meshEnumerator.Current; if (!this.currentMesh) { continue; } return true; } } if (!this.groupEnumerator.MoveNext()) { return false; } this.currentGroup = this.groupEnumerator.Current; this.meshEnumerator = ((IEnumerable<Mesh>)this.currentGroup.meshes).GetEnumerator(); return this.MoveNext(); }
private bool MoveNext() { if (this.meshEnumerator != null) { while (this.meshEnumerator.MoveNext()) { TreeUnpack treeUnpack = this; treeUnpack.currentTreeIndex = treeUnpack.currentTreeIndex + 1; this.currentMesh = this.meshEnumerator.Current; if (!this.currentMesh) { continue; } return(true); } } if (!this.groupEnumerator.MoveNext()) { return(false); } this.currentGroup = this.groupEnumerator.Current; this.meshEnumerator = ((IEnumerable <Mesh>) this.currentGroup.meshes).GetEnumerator(); return(this.MoveNext()); }