예제 #1
0
        // Start is called before the first frame update
        public void Start()
        {
            if (levelData == null)
            {
                return;
            }

            GameArea           gameArea     = levelData.GameArea;
            List <CarPathPair> carPathPairs = gameArea.CarPathPairs;

            if (carPathPairs != null)
            {
                carPathEnumerator = carPathPairs.GetEnumerator();
                if (carPathEnumerator.MoveNext())
                {
                    CarPathPair carPathPair = carPathEnumerator.Current;
                    if (carPathPair is { })
 public void SetCarPathPair(CarPathPair aCarPathPair)
 {
     carPathPair = aCarPathPair;
 }