Esempio n. 1
0
 public void FixedUpdate()
 {
     if (healthReference <= 0)
     {
         area.ResetAgents();
         area.ResetArea();
     }
 }
Esempio n. 2
0
    public IEnumerator HandleDead()
    {
        // Have to wait for action to register reward
        yield return(new WaitForFixedUpdate());

        yield return(new WaitForFixedUpdate());

        yield return(new WaitForFixedUpdate());

        yield return(new WaitForFixedUpdate());

        yield return(new WaitForFixedUpdate());

        yield return(new WaitForFixedUpdate());

        area.ResetAgents();
        area.ResetArea();
    }