Beispiel #1
0
 void OnTriggerEnter(Collider col)
 {
     if (col.name == "ColliderBottom")
     {
         waypointHolder.UpdateScore();
     }
 }
Beispiel #2
0
 void OnTriggerEnter(Collider col)
 {
     if (col.name == "ColliderBottom")
     {
         waypointHolder.UpdateScore();
         waypointHolder.UpdateTime();
         Destroy(this.gameObject);
     }
 }