// Update is called once per frame void Update() { if (Input.GetKeyDown("e")) { Time.timeScale += 1.0f; //_agentData.Die(); } if (Input.GetKeyDown("r")) { Time.timeScale = 1.0f; } //To Test if Monte Carlo Tree works, switch off exploration if (Input.GetKeyDown("t")) { if (ExplorationFactor == 0.0f) { ExplorationFactor = 0.5f; } else { ExplorationFactor = 0.0f; } isExploring = !isExploring; ResetPosition(); GameObject.Find("IsExploring").GetComponent <UnityEngine.UI.Text>().text = isExploring.ToString(); } if (!inBattle && _agentActions.IsAtDestination()) { SelectionAndExpantion(); Simulation((int)nodeOptions); } Battle(); Checks(); }