Skip to content

Commit

Permalink
fix: foot sensor where not triggering on style transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohojoe committed May 28, 2020
1 parent e9c563b commit 3ddf4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnitySDK/Assets/MarathonEnvs/Scripts/StyleTransfer002Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public void OnSensorCollisionEnter(Collider sensorCollider, GameObject other)
{
if (string.Compare(other.name, "Terrain", true) !=0)
return;
if (_sensors == null || _sensors.Count != 0)
if (_sensors == null || _sensors.Count == 0)
return;
var sensor = _sensors
.FirstOrDefault(x=>x == sensorCollider.gameObject);
Expand All @@ -281,7 +281,7 @@ public void OnSensorCollisionExit(Collider sensorCollider, GameObject other)
{
if (string.Compare(other.gameObject.name, "Terrain", true) !=0)
return;
if (_sensors == null || _sensors.Count != 0)
if (_sensors == null || _sensors.Count == 0)
return;
var sensor = _sensors
.FirstOrDefault(x=>x == sensorCollider.gameObject);
Expand Down

0 comments on commit 3ddf4f8

Please sign in to comment.