File tree 2 files changed +11
-2
lines changed
Project/Assets/ML-Agents/Examples/Soccer/Scripts
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,16 @@ public enum Position
50
50
51
51
public override void Initialize ( )
52
52
{
53
- m_Existential = 1f / MaxStep ;
53
+ SoccerEnvController envController = GetComponentInParent < SoccerEnvController > ( ) ;
54
+ if ( envController != null )
55
+ {
56
+ m_Existential = 1f / envController . MaxEnvironmentSteps ;
57
+ }
58
+ else
59
+ {
60
+ m_Existential = 1f / MaxStep ;
61
+ }
62
+
54
63
m_BehaviorParameters = gameObject . GetComponent < BehaviorParameters > ( ) ;
55
64
if ( m_BehaviorParameters . TeamId == ( int ) Team . Blue )
56
65
{
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class PlayerInfo
21
21
/// Max Academy steps before this platform resets
22
22
/// </summary>
23
23
/// <returns></returns>
24
- [ Header ( "Max Environment Steps" ) ] public int MaxEnvironmentSteps = 25000 ;
24
+ [ Tooltip ( "Max Environment Steps" ) ] public int MaxEnvironmentSteps = 25000 ;
25
25
26
26
/// <summary>
27
27
/// The area bounds.
You can’t perform that action at this time.
0 commit comments