diff --git a/unity/Assets/Scripts/FpinAgentController.cs b/unity/Assets/Scripts/FpinAgentController.cs index aee1812096..e7410e89e8 100644 --- a/unity/Assets/Scripts/FpinAgentController.cs +++ b/unity/Assets/Scripts/FpinAgentController.cs @@ -883,8 +883,11 @@ public ActionFinished InitializeBody( fpinMovable = new FpinMovableContinuous(this.GetComponentInParent()); // we had a body asset used, so actionFinished returns info related to that - if (bodyAsset != null) { - return new ActionFinished(spawnAssetActionFinished) { + if (bodyAsset != null) + { + return new ActionFinished(spawnAssetActionFinished) + { + success = true, // TODO: change to a proper class once metadata return is defined actionReturn = new Dictionary() { @@ -898,16 +901,19 @@ spawnAssetActionFinished.actionReturn as ObjectSphereBounds { "cameraFarPlane", m_Camera.farClipPlane } } }; - } else { - return new ActionFinished() { + } + else + { + return new ActionFinished( + success: true, // TODO: change to a proper class once metadata return is defined - actionReturn = new Dictionary() + actionReturn: new Dictionary() { { "BoxBounds", this.BoxBounds }, { "cameraNearPlane", m_Camera.nearClipPlane }, { "cameraFarPlane", m_Camera.farClipPlane } } - }; + ); } }