Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (!dead & aiClass.useBow & !mouseOnUI)
     {
         HoldBow();
         ShootArrow();
     }
     if (hp <= 0)
     {
         dead = true;
         playerInteract.GetOff();
         animator.SetBool("Running", false);
         down();
     }
     DontAttack();
     HPBar();
 }