void Start() { steeringBasics = GetComponent <SteeringBasics>(); hide = GetComponent <Hide>(); obstacleSpawner = GameObject.Find("ObstacleSpawner").GetComponent <Spawner>(); wallAvoid = GetComponent <WallAvoidance>(); }
void Start() { path.CalcDistances(); steeringBasics = GetComponent<SteeringBasics>(); wallAvoidance = GetComponent<WallAvoidance>(); followPath = GetComponent<FollowPath>(); }