Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 private static void SaveObjectsToXML()
 {
     SaveLoadSystem.Save();
 }