public void Revert() { var imaginaryObject = ImaginaryObjectSerialization.LoadFromSaveFile <HierarchyPrefab>(PrefabPath); ImaginaryObjectBase = imaginaryObject.ImaginaryObjectBase; AttachedScripts = imaginaryObject.AttachedScripts; LocalHierarchy = imaginaryObject.LocalHierarchy; PrefabName = imaginaryObject.PrefabName; }
public void Apply() { ImaginaryObjectSerialization.SaveToFile(PrefabPath, this); }