12345678910111213141516171819202122232425262728293031323334 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace TrafficSimulation{
- public class CarHandler : MonoBehaviour
- {
- public TrafficSystem trafficSystem;
- [Header("Player Settings")]
- public GameObject Bike;
- [Tooltip("Radius around the player to spawn cars")]
- [Range(5,30)]
- public int actionRadius;
- [Header("Car Settings")]
- [Range(1,10)]
- public int trafficDensity;
- [Tooltip("You can define presets for intersections to trigger, if the player is reaching the Intersection")]
- public List<GameObject> intersectionPresets;
- [Tooltip("List of cars to spawn")]
- public List<GameObject> carPrefabs;
- // Start is called before the first frame update
- void Start()
- {
-
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- }
- }
|