예제 #1
0
 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;
 }
예제 #2
0
 public static List<StringToPrefab> MakeList(StringToPrefab[] inputArray)
 {
     return new List<StringToPrefab>(inputArray);
 }