|
|
|
|
|
|
/// Unity package version of com.unity.ml-agents.
|
|
|
|
/// This must match the version string in package.json and is checked in a unit test.
|
|
|
|
/// </summary>
|
|
|
|
internal const string k_PackageVersion = "2.0.0-pre.1"; |
|
|
|
internal const string k_PackageVersion = "2.0.0-pre.2"; |
|
|
|
|
|
|
|
const int k_EditorTrainingPort = 5004; |
|
|
|
|
|
|
|
|
|
|
// This try-catch is because DontDestroyOnLoad cannot be used in Editor Tests
|
|
|
|
GameObject.DontDestroyOnLoad(m_StepperObject); |
|
|
|
} |
|
|
|
catch { } |
|
|
|
catch {} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
|
|
|
void ResetActions() |
|
|
|
{ |
|
|
|
DecideAction = () => { }; |
|
|
|
DestroyAction = () => { }; |
|
|
|
AgentPreStep = i => { }; |
|
|
|
AgentSendState = () => { }; |
|
|
|
AgentAct = () => { }; |
|
|
|
AgentForceReset = () => { }; |
|
|
|
OnEnvironmentReset = () => { }; |
|
|
|
DecideAction = () => {}; |
|
|
|
DestroyAction = () => {}; |
|
|
|
AgentPreStep = i => {}; |
|
|
|
AgentSendState = () => {}; |
|
|
|
AgentAct = () => {}; |
|
|
|
AgentForceReset = () => {}; |
|
|
|
OnEnvironmentReset = () => {}; |
|
|
|
} |
|
|
|
|
|
|
|
static void OnQuitCommandReceived() |
|
|
|