Skip to content

Commit 2721989

Browse files
author
Chris Elion
authored
Rider suggested cleanup, part 1 (#5265)
1 parent 04a02c1 commit 2721989

File tree

68 files changed

+34
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+34
-110
lines changed

Project/Assets/ML-Agents/Examples/3DBall/Scripts/Ball3DHardAgent.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using UnityEngine;
22
using Unity.MLAgents;
33
using Unity.MLAgents.Actuators;
4-
using Unity.MLAgents.Sensors;
54
using Unity.MLAgents.Sensors.Reflection;
65

76
public class Ball3DHardAgent : Agent

Project/Assets/ML-Agents/Examples/Basic/Scripts/BasicActuatorComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public override ActionSpec ActionSpec
3131
/// <summary>
3232
/// Simple actuator that converts the action into a {-1, 0, 1} direction
3333
/// </summary>
34-
public class BasicActuator : IActuator, IHeuristicProvider
34+
public class BasicActuator : IActuator
3535
{
3636
public BasicController basicController;
3737
ActionSpec m_ActionSpec;

Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using UnityEngine;
22
using Unity.MLAgents;
3-
using Unity.Barracuda;
43
using Unity.MLAgents.Actuators;
54
using Unity.MLAgentsExamples;
65
using Unity.MLAgents.Sensors;

Project/Assets/ML-Agents/Examples/DungeonEscape/Scripts/PushAgentEscape.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections;
21
using UnityEngine;
32
using Unity.MLAgents;
43
using Unity.MLAgents.Sensors;

Project/Assets/ML-Agents/Examples/DungeonEscape/Scripts/SimpleNPC.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// using System;
2-
using System.Collections;
3-
using System.Collections.Generic;
41
using UnityEngine;
52

63
public class SimpleNPC : MonoBehaviour

Project/Assets/ML-Agents/Examples/FoodCollector/Scripts/FoodCollectorAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void MoveAgent(ActionBuffers actionBuffers)
105105
dirToGo += transform.right * right;
106106
rotateDir = -transform.up * rotate;
107107

108-
var shootCommand = (int)discreteActions[0] > 0;
108+
var shootCommand = discreteActions[0] > 0;
109109
if (shootCommand)
110110
{
111111
m_Shoot = true;

Project/Assets/ML-Agents/Examples/Match3/Scripts/Match3Agent.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System;
22
using UnityEngine;
33
using Unity.MLAgents;
4-
using Unity.MLAgents.Actuators;
5-
using Unity.MLAgents.Integrations.Match3;
64

75
namespace Unity.MLAgentsExamples
86
{

Project/Assets/ML-Agents/Examples/PushBlock/Scripts/GoalDetectTrigger.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System.Collections;
2-
using System.Collections.Generic;
31
using UnityEngine;
42
using UnityEngine.Events;
53

Project/Assets/ML-Agents/Examples/PushBlock/Scripts/PushAgentCollab.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
//Put this script on your blue cube.
2-
3-
using System.Collections;
42
using UnityEngine;
53
using Unity.MLAgents;
64
using Unity.MLAgents.Actuators;

Project/Assets/ML-Agents/Examples/PushBlockWithInput/Scripts/PushBlockWithInputAgentBasic.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
//Put this script on your blue cube.
2-
3-
using System;
42
using System.Collections;
53
using UnityEngine;
64
using Unity.MLAgents;
@@ -18,7 +16,7 @@ public class PushBlockWithInputAgentBasic : Agent
1816

1917
/// <summary>
2018
/// The area bounds.
21-
/// </summary'PushAgentBasic'>
19+
/// </summary>
2220
[HideInInspector]
2321
public Bounds areaBounds;
2422

0 commit comments

Comments
 (0)