private void Init(LevelSurface levelSurface) { walker = levelSurface.CreateWalker(); walker.debugDrawEnabled = true; walker.RespawnNearPoint(startMarker.position + transform.position); }
private void Init(LevelSurface levelSurface) { walker = levelSurface.CreateWalker(); //walker.RespawnAtDefaultPlace(); walker.RespawnNearPoint(transform.position); walker.OnTriangleChanged += (float deltaAngle) => { targetAngle += deltaAngle; }; }
public FoodSpawner(Config config, LevelSurface levelSurface) { foodPrefab = config.foodPrefab; walker = levelSurface.CreateWalker(); }