public void Init() { CTL = GetComponent <CollTypeList> (); LLaneType.ClearOptions(); foreach (GameObject obj in CTL.LaneTypes) { LLaneType.options.Add(new Dropdown.OptionData(obj.name)); } LCollType.ClearOptions(); foreach (GameObject obj in CTL.CollectableTypes) { LCollType.options.Add(new Dropdown.OptionData(obj.name)); } LObstType.ClearOptions(); foreach (GameObject obj in CTL.ObstacleTypes) { LObstType.options.Add(new Dropdown.OptionData(obj.name)); } MLaneType.ClearOptions(); foreach (GameObject obj in CTL.LaneTypes) { MLaneType.options.Add(new Dropdown.OptionData(obj.name)); } MCollType.ClearOptions(); foreach (GameObject obj in CTL.CollectableTypes) { MCollType.options.Add(new Dropdown.OptionData(obj.name)); } MObstType.ClearOptions(); foreach (GameObject obj in CTL.ObstacleTypes) { MObstType.options.Add(new Dropdown.OptionData(obj.name)); } RLaneType.ClearOptions(); foreach (GameObject obj in CTL.LaneTypes) { RLaneType.options.Add(new Dropdown.OptionData(obj.name)); } RCollType.ClearOptions(); foreach (GameObject obj in CTL.CollectableTypes) { RCollType.options.Add(new Dropdown.OptionData(obj.name)); } RObstType.ClearOptions(); foreach (GameObject obj in CTL.ObstacleTypes) { RObstType.options.Add(new Dropdown.OptionData(obj.name)); } }
public void Init() { CTL = GetComponent<CollTypeList> (); LLaneType.ClearOptions (); foreach (GameObject obj in CTL.LaneTypes) { LLaneType.options.Add (new Dropdown.OptionData (obj.name)); } LCollType.ClearOptions (); foreach (GameObject obj in CTL.CollectableTypes) { LCollType.options.Add (new Dropdown.OptionData (obj.name)); } LObstType.ClearOptions (); foreach (GameObject obj in CTL.ObstacleTypes) { LObstType.options.Add (new Dropdown.OptionData (obj.name)); } MLaneType.ClearOptions (); foreach (GameObject obj in CTL.LaneTypes) { MLaneType.options.Add (new Dropdown.OptionData (obj.name)); } MCollType.ClearOptions (); foreach (GameObject obj in CTL.CollectableTypes) { MCollType.options.Add (new Dropdown.OptionData (obj.name)); } MObstType.ClearOptions (); foreach (GameObject obj in CTL.ObstacleTypes) { MObstType.options.Add (new Dropdown.OptionData (obj.name)); } RLaneType.ClearOptions (); foreach (GameObject obj in CTL.LaneTypes) { RLaneType.options.Add (new Dropdown.OptionData (obj.name)); } RCollType.ClearOptions (); foreach (GameObject obj in CTL.CollectableTypes) { RCollType.options.Add (new Dropdown.OptionData (obj.name)); } RObstType.ClearOptions (); foreach (GameObject obj in CTL.ObstacleTypes) { RObstType.options.Add (new Dropdown.OptionData (obj.name)); } }