Beispiel #1
0
 private void OnTriggerExit(Collider other)
 {
     if (other.CompareTag("Suger"))
     {
         Debug.Log(other.name + " Exit");
         currentPart = null;
     }
 }
Beispiel #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Suger"))
     {
         Debug.Log(other.name + " Enter");
         currentPart = other.GetComponent <SugerPart>();
     }
 }