Ejemplo n.º 1
0
 public void CheckDistance()
 {
     distanceFromMinotaur = Vector3.Distance(player.transform.position, minotaur.transform.position);
     if (distanceFromMinotaur <= deathRange)
     {
         print("dead");
         death.DieAnim();
     }
 }