/// <summary> /// Reset when done. /// eg. reset agents attributes, agents area etc. Is run everytime the agent is /// done with his job. Including the first run. /// </summary> public override void AgentReset() { // Reset goall = GameObject.Find("Goal"); agentRigidbody.velocity = Vector3.zero; agentArea.ResetArea(); }
public override void AgentReset() { life = 30; myArea.ResetArea(); // Move the Snake every 300ms // InvokeRepeating("Move", 0.3f, 0.3f); }