public override void OnEpisodeBegin() { //reset the background background.transform.position = backgroundTransform.position; background.transform.rotation = backgroundTransform.rotation; background.transform.localScale = backgroundTransform.localScale; //reset the player transform.position = new Vector3(0.0f, 0.0f, 0.0f); transform.rotation = Quaternion.Euler(0.0f, 90.0f, 0.0f); _playerController.health = 3; healthDisplay.ResetHealth(); gameController.ResetScore(); //reset the enemy newEnemySpawner.ResetEnemies(); Debug.Log("Start"); }