public static void GenerateMod(Saving.SaveManager.SavableObject.WorldObject ModData)
        {
            if (Directory.Exists(ModsDirectory) == false)
            {
                Directory.CreateDirectory(ModsDirectory);
            }

            ModInfo mod = new ModInfo(ModData.name, $"{ModData.name}", ModData.spriteSortingLayer, ModData.color, ModData.pVal, ModData.wVal, ModData.type, ModData.objectType, ModData.fulFills, ModData.childPos, ModData.rotatable, ModData.ChangableColor);

            string fileInfo = JsonUtility.ToJson(mod);

            File.WriteAllText(ModsDirectory + $"/{mod.name}.txt", fileInfo);
        }
        public static GhostObject GetGhost(Saving.SaveManager.SavableObject.WorldObject placing)
        {
            foreach (var item in Ghosts)
            {
                if (item.gameObject.activeSelf == false)
                {
                    item.ghostData.placing = placing;
                    item.gameObject.SetActive(true);

                    return(item);
                }
            }

            return(Ghosts[firstGhost]);
        }