public T Reader <T>(string tag, T defaultData) { StoredataType expectedValue = StoredataTypeMgr.GetStoredataType(typeof(T)); Setting.curObject = typeof(T); return(Reader <T>(expectedValue, defaultData)); }
public void Write <T>(T param, string tag) { StoredataType valueType = StoredataTypeMgr.GetStoredataType(param.GetType()); if (valueType == null) { Debug.LogError("SaveType " + param.GetType().ToString() + "."); } else { valueType.Write(param, this); } }