コード例 #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Player") && parentScript != null)
     {
         parentScript.CarReact("enterPedestrian", other.transform);
     }
 }