Esempio n. 1
0
 void OnTriggerExit(Collider col)
 {
     PlayerController player = col.GetComponent<PlayerController>();
     if (player)
     {
         playerInside = null;
     }
 }
Esempio n. 2
0
 void OnTriggerEnter(Collider col)
 {
     PlayerController player = col.GetComponent<PlayerController>();
     if (player)
     {
         playerInside = player;
     }
 }