public static Dictionary<string, GameObject> MakeDict(StringToPrefab[] inputArray) { Dictionary<string, GameObject> outputDict = new Dictionary<string, GameObject>(); foreach (var keypair in inputArray) { outputDict[keypair.concept] = keypair.prefab; } return outputDict; }
public static List<StringToPrefab> MakeList(StringToPrefab[] inputArray) { return new List<StringToPrefab>(inputArray); }