Ejemplo 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();
            }
        }
Ejemplo n.º 2
0
        private static void SaveWindow(MenuCommand command)
        {
            GameObject obj = (GameObject)command.context;

            SaveSpecificEditor.ShowWindow(obj);
        }