Esempio n. 1
0
    IEnumerator FollowPath(List <Waypoint> path)
    {
        foreach (Waypoint block in path)
        {
            transform.position = block.transform.position;
            yield return(new WaitForSeconds(movementSpeed));
        }

        pathCompleted = true;
        healthHandler.DestroyEnemy(goalParticlePrefab);
    }