footstep audio added
This commit is contained in:
@@ -36,7 +36,8 @@ public class SensorObservations : MonoBehaviour, IOnSensorCollision
|
||||
SensorIsInTouch[idx] = 1f;
|
||||
}
|
||||
}
|
||||
public void OnSensorCollisionExit(Collider sensorCollider, GameObject other)
|
||||
|
||||
public void OnSensorCollisionExit(Collider sensorCollider, GameObject other)
|
||||
{
|
||||
//if (string.Compare(other.gameObject.name, "Terrain", true) !=0)
|
||||
if (other.layer != LayerMask.NameToLayer("Ground"))
|
||||
@@ -48,4 +49,5 @@ public class SensorObservations : MonoBehaviour, IOnSensorCollision
|
||||
SensorIsInTouch[idx] = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user