Hi All!
Is generic List somehow broken in unity? Im using unity free.
Problem is orblist.Count is always giving me 0.
import System.Collections.Generic;
var orblist = new List.<GameObject>();
function changeTargetForAllOrbs (newTarget : GameObject)
{
print(orblist.Count);
for(i = 0; i<orblist.Count; i++)
{
print("please work!");
}
}
This is weird, because when adding :
print(orblist.Count);
in Update it will work and give me correct number if instances in List.
Help!