// Update is called once per frame void FixedUpdate() { m_ResetTimer += 1; if (m_ResetTimer >= MaxEnvironmentSteps && MaxEnvironmentSteps > 0) { m_AgentGroup.GroupEpisodeInterrupted(); ResetScene(); } }
void FixedUpdate() { timer += 1; if (timer >= MaxEnvironmentSteps && MaxEnvironmentSteps > 0) { TeamBlue.GroupEpisodeInterrupted(); TeamRed.GroupEpisodeInterrupted(); ResetScene(); } }
void FixedUpdate() { m_ResetTimer += 1; if (m_ResetTimer >= MaxEnvironmentSteps && MaxEnvironmentSteps > 0) { m_AgentGroup.GroupEpisodeInterrupted(); ResetScene(); } //Hurry Up Penalty m_AgentGroup.AddGroupReward(-0.5f / MaxEnvironmentSteps); }
private void FixedUpdate() { m_ResetTimer += 1; if (m_ResetTimer >= MaxEnvironmentSteps && MaxEnvironmentSteps > 0) { Debug.Log("Timeout!"); Cleanup(); m_AgentGroup.GroupEpisodeInterrupted(); ResetScene(); } if (activeCars == 0) { m_AgentGroup.AddGroupReward(1 - m_ResetTimer / MaxEnvironmentSteps); m_AgentGroup.EndGroupEpisode(); ResetScene(); } }