public void Delete(SpriteManager sm) { if (_Item.ID != ""){ string path = Application.persistentDataPath + "/" + _Item.ID; FileInfo t = new FileInfo(path); if(t.Exists){ t.Delete(); sm.Delete(_Item.ID); } isEditing = false; } }