Created
November 1, 2017 22:21
-
-
Save unity3dcollege/e0b0189e983bbc36d8d58345728b31b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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