Скрипт перемещения машин

This commit is contained in:
LikhenkoVG
2024-12-17 21:46:56 +03:00
parent 8358a1dcd6
commit 937a6340ec
18 changed files with 2833 additions and 48 deletions

View File

@ -0,0 +1,15 @@
using UnityEngine;
public class PointTrigZoneScript : MonoBehaviour
{
[SerializeField]
private CarManagerScript _Line;
private void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Car") || other.CompareTag("Boat"))
{
_Line.DeleteCar();
}
}
}