void OnTriggerStay(Collider other)
 {
     if (other.gameObject.tag == "Player" && other.gameObject == player)
     {
         if (Input.GetKeyDown(KeyCode.T))
         {
             questManager.StartConversation(allyIndex);
             controller.Lock();
             caster.Lock();
         }
     }
 }
Ejemplo n.º 2
0
    IEnumerator WaitAndRespawn()
    {
        controller.Lock();
        caster.Lock();

        yield return(new WaitForSeconds(5));

        questManager.ClearAlert();
        anim.SetBool("isDead", false);
        controller.Unlock();
        caster.Unlock();
        healthbar.value         = 100;
        this.transform.position = respawnSpot.transform.position;
    }