public void SetPart(MSBBB.Part.ConnectCollision part) { setBasePart(part); CollisionName = part.CollisionName; MapID1 = part.MapID1; MapID2 = part.MapID2; MapID3 = part.MapID3; MapID4 = part.MapID4; }
public MSBBB.Part.ConnectCollision Serialize(GameObject parent) { var part = new MSBBB.Part.ConnectCollision(ID, parent.name); _Serialize(part, parent); part.CollisionName = (CollisionName == "") ? null : CollisionName; part.MapID1 = MapID1; part.MapID2 = MapID2; part.MapID3 = MapID3; part.MapID4 = MapID4; return(part); }