|
|
|
|
|
|
// 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() |
|
|
|