Exemple #1
0
 void OnTriggerEnter(Collider other)
 {
     control.onRoad = true;
     if (other.tag == "road")
     {
         control.SetDir(other.transform.parent.transform.parent.eulerAngles);
     }
 }