Skip to content

Commit

Permalink
ran formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
winthos committed Aug 20, 2024
1 parent 88c496c commit 93a137f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 4 additions & 2 deletions unity/Assets/Scripts/AgentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public void Initialize(ServerAction action) {
}

//deprecation check for visibilityScheme
if(action.visibilityScheme != VisibilityScheme.Distance.ToString()) {
if (action.visibilityScheme != VisibilityScheme.Distance.ToString()) {
throw new ArgumentException(
$"Invalid visibilityScheme {action.visibilityScheme}. Must be 'Distance'."
);
Expand Down Expand Up @@ -2694,7 +2694,9 @@ public static VisibilityScheme GetVisibilitySchemeFromString(string visibilitySc
catch (ArgumentException ex) {
#pragma warning restore 0168
Debug.LogError(
"Error parsing visibilityScheme: '" + visibilityScheme + "' defaulting to Distance Based"
"Error parsing visibilityScheme: '"
+ visibilityScheme
+ "' defaulting to Distance Based"
);
}

Expand Down
10 changes: 3 additions & 7 deletions unity/Assets/Scripts/FpinAgentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -883,10 +883,8 @@ public ActionFinished InitializeBody(
fpinMovable = new FpinMovableContinuous(this.GetComponentInParent<CollisionListener>());

// 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<string, object>()
Expand All @@ -901,9 +899,7 @@ spawnAssetActionFinished.actionReturn as ObjectSphereBounds
{ "cameraFarPlane", m_Camera.farClipPlane }
}
};
}
else
{
} else {
return new ActionFinished(
success: true,
// TODO: change to a proper class once metadata return is defined
Expand Down

0 comments on commit 93a137f

Please sign in to comment.