예제 #1
0
    protected override Vector3 NextPoint()
    {
        Vector3 next = GameCreator.randomPosOnMap(groundOffset);

        next.x += Random.Range(-range, range);
        isWaitingForNewPoint = false;
        return(next);
    }
예제 #2
0
    new void Start()
    {
        int nbPointInPath = Random.Range(3, 5);

        path = new List <Vector3>();
        for (int i = 0; i < nbPointInPath; i++)
        {
            path.Add(GameCreator.randomPosOnMap(groundOffset));
        }
        base.Start();
    }