string GetMethodValues(TargetSaveData target) { string data = ""; for (int j = 0; j < target.methodInfos.Length; j++) { if (target.methodInfos[j].ReturnType == typeof(Vector3)) { data += GetVector3String((Vector3)target.methodInfos[j].Invoke(target.instance, new object[] { })) + '\t'; } else { data += target.methodInfos[j].Invoke(target.instance, new object[] { }).ToString() + '\t'; } } return(data); }
string GetFieldValues(TargetSaveData target) { string data = ""; for (int j = 0; j < target.fieldInfos.Length; j++) { if (target.fieldInfos[j].FieldType == typeof(Vector3)) { data += GetVector3String((Vector3)target.fieldInfos[j].GetValue(target.instance)) + '\t'; } else { data += target.fieldInfos[j].GetValue(target.instance).ToString() + '\t'; } } return(data); }