public void Assign(SaveData saveData) { boolKeyValuePairLists = saveData.boolKeyValuePairLists; intKeyValuePairLists = saveData.intKeyValuePairLists; stringKeyValuePairLists = saveData.stringKeyValuePairLists; vector3KeyValuePairLists = saveData.vector3KeyValuePairLists; quaternionKeyValuePairLists = saveData.quaternionKeyValuePairLists; }
private bool Load <T>(KeyValuePairLists <T> lists, string key, ref T value) { return(lists.TryGetValue(key, ref value)); }
private void Save <T>(KeyValuePairLists <T> lists, string key, T value) { lists.TrySetValue(key, value); }