Пример #1
0
 void OnTriggerEnter(Collider other)                 //set player in range and slows down player by calling the player healths slowdown function
 {
     if (other.tag == "Player")
     {
         playerInRange = true;
         thePlayerHealth.slowDown(reducePlayerSpeed);
     }
 }