void Awake()
 {
     datasLibrary   = datas;
     prefabsLibrary = new Dictionary <string, BaseDisplay>();
     foreach (PrefabTuple go in prefabs)
     {
         prefabsLibrary[go.prefabID] = go.baseDisplay;
     }
 }
Esempio n. 2
0
 void Awake()
 {
     datasLibrary   = datas;
     prefabsLibrary = new Dictionary <BaseDisplay.DISPLAY_TYPES, BaseDisplay>();
     for (int i = 0; i < displayPrefabs.types.Count; i++)
     {
         prefabsLibrary[displayPrefabs.types[i]] = displayPrefabs.prefabs[i];
     }
 }