Example #1
0
    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);
    }
Example #2
0
 public PresetObject(string name, StringDictDictionary bodies)
 {
     this.name   = name;
     this.bodies = bodies;
 }