protected override Vector3 NextPoint() { Vector3 next = GameCreator.randomPosOnMap(groundOffset); next.x += Random.Range(-range, range); isWaitingForNewPoint = false; return(next); }
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(); }