I know that I can .Add things to a list but is there a neater way, like you can with Arrays for example?
var timer : List.<int>;
function Start()
{
timer = new List.<int>(1,3,4,4,4);
}
I know that I can .Add things to a list but is there a neater way, like you can with Arrays for example?
var timer : List.<int>;
function Start()
{
timer = new List.<int>(1,3,4,4,4);
}
timer = new List.([1, 3, 4, 4, 4]);
List iList = new List();
iList.Add(2);
iList.Add(3);
iList.Add(5);
iList.Add(7);
More about…C# List
Evan