コード例 #1
0
ファイル: PlayerController.cs プロジェクト: mamabox/SPAGEO-4P
 // 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);
 }
コード例 #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 + ")");
 }