Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         PlayerController player = other.GetComponentInParent <PlayerController>();
         if (player != null)
         {
             PU.Collect(player);
         }
     }
 }