File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
com.unity.ml-agents.extensions/Runtime/Input Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,18 @@ void OnDisable()
4444 m_lastCreatedActuator ? . CleanupActionAsset ( ) ;
4545 }
4646
47- public override IActuator CreateActuator ( )
47+ public override IActuator [ ] CreateActuators ( )
4848 {
4949 FindNeededComponents ( ) ;
5050 m_lastCreatedActuator ? . ResetData ( ) ;
5151 m_lastCreatedActuator = new InputActuator ( m_PlayerInput , m_BehaviorParameters , m_Agent ) ;
52- return m_lastCreatedActuator ;
52+ return new IActuator [ ] { m_lastCreatedActuator } ;
5353 }
5454
55+ #pragma warning disable 672
56+ public override IActuator CreateActuator ( ) { return null ; }
57+ #pragma warning restore 672
58+
5559 public override ActionSpec ActionSpec => ActionSpec . MakeContinuous ( 0 ) ;
5660 }
5761}
You can’t perform that action at this time.
0 commit comments