Example #1
0
 // WHEN PLAYER LEAVES AN INTERSECTION, CHECKPOINT OR HOTSPOT
 private void OnTriggerExit(Collider other)
 {
     if (other.tag == "Intersection")
     {
         intersectionManager.OnIntersectionExit(other);
     }
     else if (other.tag == "Checkpoint")
     {
         checkpointManager.OnCheckpointExit(other);
     }
     else if (other.tag == "Hotspot")
     {
         hotspotManager.OnHotspotExit(other);
     }
     Debug.Log("OUT " + other.tag);
 }
Example #2
0
 // WHEN PLAYER LEAVES AN INTERSECTION OR A HOTSPOT
 private void OnTriggerExit(Collider other)
 {
     if (other.tag == "Intersection")
     {
         intersectionManager.OnIntersectionExit(other);
     }
     else if (other.tag == "Checkpoint")
     {
         checkpointManager.OnCheckpointExit(other);
     }
     else if (other.tag == "Hotspot")
     {
         hotspotManager.OnHotspotExit(other);
     }
     //Debug.Log(other.tag + " OUT ()");
     // Debug.Log(other.tag + " OUT (" + other.GetComponent<Hotspot>().coordString + ")");
 }