public static StringDictDictionary GetAllBodyData() { StringDictDictionary allBodies = StringDictDictionary.New <StringDictDictionary>(); foreach (GameObject o in planets) { allBodies.dictionary.Add(planets.IndexOf(o) + "", o.GetComponent <BodyControllerScript>().getFields()); } return(allBodies); }
public PresetObject(string name, StringDictDictionary bodies) { this.name = name; this.bodies = bodies; }