// Update is called once per frame void Update() { if (countdown == true) { safeCount += Time.deltaTime; if (safeCount >= safeMax) { countdown = false; AgentMove.fleeing = false; AgentMove.SetDestination(); } } }
// Update is called once per frame void Update() { if (hasBeenShot == true) { //Debug.Log("I have been shot"); transform.position = myRoom.position; hasBeenShot = false; parentScript.disappointed = true; } if (reset == true) { reset = false; setNewTarget.SetDestination(); } }