예제 #1
0
    // Start is called before the first frame update
    void Awake()
    {
        /*   for (int i = 0; i < enemyPath.pathPoints.Count; i++)
         * {
         *     points.Add(enemyPath.pathPoints[i].transform);
         * }
         */

        for (int i = 0; i < enemyPath.Count; i++)
        {
            points.Add(enemyPath[i].transform);
            var enemyadd = anEnemy.GetComponent <EnemyMover>().wayPointsRecieved;
            enemyadd.Add(enemyPath[i].transform);
        }
    }