|
|
|
|
|
|
ActionSpec actionSpec; |
|
|
|
if (bpp.ActionSpec == null) |
|
|
|
{ |
|
|
|
// Disable deprecation warnings so we can set legacy fields
|
|
|
|
#pragma warning disable CS0618
|
|
|
|
var spaceType = (SpaceType)bpp.VectorActionSpaceTypeDeprecated; |
|
|
|
if (spaceType == SpaceType.Continuous) |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
actionSpec = ActionSpec.MakeDiscrete(bpp.VectorActionSizeDeprecated.ToArray()); |
|
|
|
} |
|
|
|
#pragma warning restore CS0618
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|