Example #1
0
        private void Init(LevelSurface levelSurface)
        {
            walker = levelSurface.CreateWalker();

            walker.debugDrawEnabled = true;
            walker.RespawnNearPoint(startMarker.position + transform.position);
        }
Example #2
0
        private void Init(LevelSurface levelSurface)
        {
            walker = levelSurface.CreateWalker();
            //walker.RespawnAtDefaultPlace();
            walker.RespawnNearPoint(transform.position);

            walker.OnTriangleChanged += (float deltaAngle) => {
                targetAngle += deltaAngle;
            };
        }
Example #3
0
        public FoodSpawner(Config config, LevelSurface levelSurface)
        {
            foodPrefab = config.foodPrefab;

            walker = levelSurface.CreateWalker();
        }