Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (countdown == true)
     {
         safeCount += Time.deltaTime;
         if (safeCount >= safeMax)
         {
             countdown         = false;
             AgentMove.fleeing = false;
             AgentMove.SetDestination();
         }
     }
 }
Ejemplo n.º 2
0
    // 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();
        }
    }