Головна‎ > ‎Unity‎ > ‎

Тригер

void OnTriggerEnter(Collider other
{





if (other.gameObject.name == "Car1") {

}




void OnTriggerStay(Collider other) {

}


void OnTriggerExit(Collider other) {

}