T
~toki
Having this,
// pseudocode
{
// Fill the whole SystemArray
t.position = 500;
}
// *Code*
for (int i = 0 ; i < 1000; i ++)
{
System.Collections.IEnumerator enume = trees.GetEnumerator();
while( enume.MoveNext() )
{
Tree t = (Tree)enume.Current;
t.position.X++;
}
}
With this code t.position are always 500
How can i do to work t.postion++;
Is possible to write *into* the enumerator
// pseudocode
{
// Fill the whole SystemArray
t.position = 500;
}
// *Code*
for (int i = 0 ; i < 1000; i ++)
{
System.Collections.IEnumerator enume = trees.GetEnumerator();
while( enume.MoveNext() )
{
Tree t = (Tree)enume.Current;
t.position.X++;
}
}
With this code t.position are always 500

How can i do to work t.postion++;
Is possible to write *into* the enumerator