private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player") && parentScript != null) { parentScript.CarReact("enterPedestrian", other.transform); } }