public override void AgentReset() { scenarioManager.GeneratePlayGround(); // reset transform gameObject.transform.position = spawnLocations[Random.Range(0, spawnLocations.Length)].transform.position; gameObject.transform.rotation = spawnLocations[Random.Range(0, spawnLocations.Length)].transform.rotation; reward = 0; totalReward = 0; seconds = roundTime; StopAllCoroutines(); // reset UI StatusText.text = "Status: Stealth"; StatusText.color = Color.blue; DistanceText.text = ""; lastKnownChaserLocation = HideSpace.transform.position; lastKnownChaserDirection = new Vector3(0f, 0f, -1f); chaserIndicator.transform.position = HideSpace.transform.position; isResetting = false; }