public void CreatePartSet()
        {
            PartSet newPartset = new PartSet();

            newPartset.isActivate = true;
            newPartset.name       = "new Part Set";

            modularSystem.partSetList.Add(newPartset);

            UpdatePartList();
        }
        public void CreateNewPart(PartSet ps)
        {
            Part newPart = new Part();

            newPart.name     = "NewPart[" + ps.partList.Count.ToString() + "]";
            newPart.position = Vector3.zero;
            newPart.rotation = Vector3.zero;
            newPart.scale    = Vector3.one;

            newPart.weight = 0;

            ps.partList.Add(newPart);
        }
        public void DuplicatePartSet(PartSet ps)
        {
            PartSet _ps = new PartSet();

            _ps.attachTransform = ps.attachTransform;
            _ps.isActivate      = ps.isActivate;
            _ps.name            = ps.name;

            foreach (Part item in ps.partList)
            {
                _ps.partList.Add(item);
            }


            modularSystem.partSetList.Add(_ps);

            UpdatePartList();
        }
 public void DeletePart(Part p, PartSet ps)
 {
     ps.partList.Remove(p);
 }
        public void DeletePartSet(PartSet ps)
        {
            modularSystem.partSetList.Remove(ps);

            UpdatePartList();
        }