behaviorParameters.model,
behaviorParameters.inferenceDevice,
true
);
}
if (behaviorTypeChanged)
{
throw new UnityAgentsException("Call to SendInfoToBrain when Agent hasn't been initialized." +
"Please ensure that you are calling 'base.OnEnable()' if you have overridden OnEnable.");
if (m_Brain == null)
internal IPolicy GetPolicy()
return (IPolicy) typeof(Agent).GetField("m_Brain", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(this);
return (IPolicy)typeof(Agent).GetField("m_Brain", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(this);
public int initializeAgentCalls;