private static void MakeSaveable(MenuCommand command) { GameObject obj = (GameObject)command.context; Iidentifier identifier = obj.GetComponent <SaveableIdentifier>(); if (identifier == null) { identifier = obj.AddComponent <SaveableIdentifier>(); identifier.id = SaveLoadSystem.GetXMLid(); SaveSpecificEditor.ShowWindow(obj); } else { Object.DestroyImmediate((SaveableIdentifier)identifier); SaveLoadSystem.Save(); } }
private static void SaveObjectsToXML() { SaveLoadSystem.Save(); }