- Home /
Using Loops
sorry for my bad English!
i have a custom class:
public class playerData {
public string name;
public NetworkPlayer player;
public Transform Prefab;
public bool isReady = false;
}
and a list:
public List<playerData> players = new List<playerData>();
and i want to call a function if every item isReady in the List. I think i should use loop but i don't know what.
Comment
Answer by MakeCodeNow · Mar 02, 2014 at 07:03 PM
Very easy, but you should google for this sort of thing before posting here. This handy page is the top resule for "c# list for loop".
Your answer
Follow this Question
Related Questions
Help With "For Loop" Not Working? 2 Answers
Using for as while. 3 Answers
C# List For Loop Only Returns Last Element 0 Answers
list.contains isn`t working 1 Answer