Hello All,
i am looking for something obvious that i am missing…
I have a list that is populated in the Start routine using the code below. It’s just a list of waypoints.
if i break inside the start routine, the list is populated.
once start completes, however, the list is empty generating an argument out of range error.
any thoughts?
public List CircuitPoints;
void Start ()
{
List CircuitPoints = new List();
CircuitPoints.Add(GameObject.Find(“StartPtLWL”).transform.position);
CircuitPoints.Add(GameObject.Find(“leftStep1_lw”).transform.position);
CircuitPoints.Add(GameObject.Find(“leftStep2_lw”).transform.position);
CircuitPoints.Add(GameObject.Find(“Step3_lw”).transform.position);
CircuitPoints.Add(GameObject.Find(“WaterEntry”).transform.position);
}