Files
2024-11-19 11:48:21 +01:00

27 lines
918 B
C#

using UnityEngine;
namespace Gley.TrafficSystem.Internal
{
/// <summary>
/// Used to store intersection objects
/// </summary>
[System.Serializable]
public struct LightsStopWaypoints
{
public int[] roadWaypoints;
public GameObject[] redLightObjects;
public GameObject[] yellowLightObjects;
public GameObject[] greenLightObjects;
public float greenLightTime;
public LightsStopWaypoints(int[] roadWaypoints, GameObject[] redLightObjects, GameObject[] yellowLightObjects, GameObject[] greenLightObjects, float greenLightTime)
{
this.roadWaypoints = roadWaypoints;
this.redLightObjects = redLightObjects;
this.yellowLightObjects = yellowLightObjects;
this.greenLightObjects = greenLightObjects;
this.greenLightTime = greenLightTime;
}
}
}