Exemplo n.º 1
0
 void OnTriggerEnter(Collider other)
 {
     // If the entering collider is the player...
     if (other.gameObject == player)
     {
         // ... the player is in range.
         playerInRange = true;
         enemyAnim.SetPlayerInRange(playerInRange);
     }
 }