Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public override void AgentReset()
{
bodyPart.Reset(bodyPart);
}
if(!targetIsStatic)
if (!targetIsStatic)
{
GetRandomTargetPos();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using MLAgents;

public class FoodCollectorAgent : Agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public enum AgentRole

float[] m_RayAngles = { 0f, 45f, 90f, 135f, 180f, 110f, 70f };
string[] m_DetectableObjectsPurple = { "ball", "purpleGoal", "blueGoal",
"wall", "purpleAgent", "blueAgent" };
"wall", "purpleAgent", "blueAgent" };
string[] m_DetectableObjectsBlue = { "ball", "blueGoal", "purpleGoal",
"wall", "blueAgent", "purpleAgent" };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static extern unsafe void macsgemm(float* ap, int an, int am,

public bool IsCurrentPlatformSupported()
{
return Application.platform == RuntimePlatform.OSXEditor ||
return Application.platform == RuntimePlatform.OSXEditor ||
Application.platform == RuntimePlatform.OSXPlayer;
}

Expand Down
4 changes: 2 additions & 2 deletions UnitySDK/Assets/ML-Agents/Scripts/BrainParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public CommunicatorObjects.BrainParametersProto
NumStackedVectorObservations = numStackedVectorObservations,
VectorActionSize = {vectorActionSize},
VectorActionSpaceType =
(CommunicatorObjects.SpaceTypeProto) vectorActionSpaceType,
(CommunicatorObjects.SpaceTypeProto)vectorActionSpaceType,
BrainName = name,
IsTraining = isTraining
};
Expand Down Expand Up @@ -131,7 +131,7 @@ public BrainParameters(CommunicatorObjects.BrainParametersProto brainParametersP
numStackedVectorObservations = brainParametersProto.NumStackedVectorObservations;
vectorActionSize = brainParametersProto.VectorActionSize.ToArray();
vectorActionDescriptions = brainParametersProto.VectorActionDescriptions.ToArray();
vectorActionSpaceType = (SpaceType) brainParametersProto.VectorActionSpaceType;
vectorActionSpaceType = (SpaceType)brainParametersProto.VectorActionSpaceType;
}

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion UnitySDK/Assets/ML-Agents/Scripts/UnityAgentsException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ protected UnityAgentsException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context)
{

}
}
}