Esempio n. 1
0
 public override void OnEpisodeBegin()
 {
     SetResetParameters();
     myReward    = 0f;
     killPlayer  = false;
     rb.velocity = new Vector3(0f, 0f, 0f);
     Debug.Log("reset velocity");
     engine.SetActive(false);
     gController.ReinitLevel();
     heading = 0;
     Debug.Log("scoreText:" + scoreText);
     scoreText.text = "Score: 0";
     //GetComponent<Rigidbody>().rotation = Quaternion.Euler(0.0f, 0.0f, 0.0f);
     bigScore = 0;
     Debug.Log("OnEpisodeBegin");
 }