public static void GetSave(PuzzleObject obj) { SaveModel sm = new SaveModel(); sm.id = obj._component.id; sm.Loading(); Debug.Log(sm.obj_id); if (sm.obj_id > 0) { obj._component.rt.gameObject.GetComponent <PuzzleDragAndDrop>().enabled = sm.enabled == 1 ? true : false; if (sm.parent > 0) { obj.SetParentLocal(new PuzzleObject(sm.parent)); } obj.SetTransform(new Vector3(float.Parse(sm.posx), float.Parse(sm.posy), 0.0f)); } }