I’m using Parse (parse.com) to store saved games on the cloud. They limit what kind of data types you can use. I’m new to C# - usually I use Javascript but Parse does not work with Javascript
I’m iterating over all of the GameObjects in my scene and making a dictionary type for each one containing its name (string), x (int), y (int), rotation(float). I would like to store these items in a List.
var blocks = GameObject.FindGameObjectsWithTag ("GameItems");
foreach (var obj in blocks)
{
//Make a new dictionary and add to list
//IDictionary<string, object> levelBlocks = new Dictionary<string, object>{};
levelBlocks.Add("name", obj.name);
levelBlocks.Add("x", obj.transform.position.x);
levelBlocks.Add("y", obj.transform.position.y);
levelBlocks.Add("rotation", obj.transform.eulerAngles.z);
}