public void Build <T>() where T : DataElement { for (int i = 0; i < SaveData.ids.Count; i++) { if (SaveData.types[i] == typeof(T).Name) { DataBuilder.BuildElementOfType <T>(SaveData, i); } } }
public void Build <T>() where T : DataElement { for (int i = 0; i < _saveData.ids.Count; i++) { if (_saveData.types[i] == typeof(T).Name) { DataBuilder.BuildElementOfType <T>(_saveData, i); } if (_saveData.info[i] != null) { for (int a = 0; a < _saveData.info[i].SaveData.ids.Count; a++) { if (_saveData.info[i].SaveData.types[a] == typeof(T).Name) { _saveData.info[i].Build <T>(); } } } } }