public void Add(Vector3 vDestination,Color vColour) { GameObject tGO = Instantiate(WaypointPrefab) as GameObject; WayPoint tWP = tGO.GetComponent<WayPoint>(); tGO.GetComponentInChildren<MeshRenderer>().material.color = vColour; tWP.Add(mList, vDestination); if(mList.Count==1) { //do first one if this is only one, rest will then sequence mNA.SetDestination(tWP.transform.position); } }