|
|
|
|
|
|
transform.position = GetRandomSpawnPos(); |
|
|
|
agentRB.velocity = Vector3.zero; |
|
|
|
agentRB.angularVelocity = Vector3.zero; |
|
|
|
|
|
|
|
// Set the size of the goal according to the current lesson in the
|
|
|
|
// curriculum.
|
|
|
|
goal.transform.localScale = new Vector3( |
|
|
|
academy.resetParameters["goal_width"], |
|
|
|
goal.transform.localScale.y, |
|
|
|
academy.resetParameters["goal_length"]); |
|
|
|
} |
|
|
|
} |