using System.Collections; using System.Collections.Generic; using UnityEngine; using static ModelExplorerController; public class ModelPlatformData : MonoBehaviour { private string[] objects = new string[] { "MAGNETO", "BATTERY", "CDMU", "CESS", "MAGTORQ", "MIRRORS", "MMFU", "PCDU", "RCS", "SBAND", "SBAND_", "SBAND_0", "SBAND_1", "TANK", "TRUST", "XBAND_AN" }; private string[] htmls = new string[] { }; private string[] names = new string[] { }; public Selectable3dObject[] Data { get { List data = new List(); for (int i = 0; i < objects.Length; i++) { string object3D = "", html = "", name = ""; if (htmls.Length > i) html = htmls[i]; if (names.Length > i) name = names[i]; data.Add(new Selectable3dObject(objects[i], html, name)); } return data.ToArray(); } } }