Skip to content

Instantly share code, notes, and snippets.

@unity3dcollege
Created November 1, 2017 22:21
Show Gist options
  • Save unity3dcollege/e0b0189e983bbc36d8d58345728b31b0 to your computer and use it in GitHub Desktop.
Save unity3dcollege/e0b0189e983bbc36d8d58345728b31b0 to your computer and use it in GitHub Desktop.
public override void AgentReset()
{
targetNumber = UnityEngine.Random.RandomRange(-1f, 1f);
sphere.position = new Vector3(targetNumber * 5, 0, 0);
currentNumber = 0f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment