示例#1
0
 public void OnTriggerExit(Collider other)
 {
     if (other.CompareTag("ground"))
     {
         //checkpoint = new Vector3(other.transform.position.x, gameObject.transform.position.y, other.transform.position.z);
         if (other.GetComponent <SegmentController>().cellType == Cell.safe)
         {
             checkpoint = aVector;
         }
     }
     if (other.CompareTag("platform"))
     {
         platCounter--;
     }
     if (other.CompareTag("pit"))
     {
         pitCounter--;
     }
     if (other.CompareTag("mission"))
     {
         uiController.HoverExit();
         missionObject = null;
     }
 }