Hello,
Can anyone tell me why this script is crashing unity (making use of Unity 5.1.1 and the default settings in mono developer)
public class PlayerScoreList : MonoBehaviour {
public GameObject playerScoreEntryPrefab;
// Use this for initialization
void Start () {
for (int i = 0; 1 < 5; i++) {
GameObject go = (GameObject)Instantiate(playerScoreEntryPrefab);
go.transform.SetParent(this.transform);
}
}
// Update is called once per frame
void Update () {
}
}
Thanks in advance,
RuberDucky