Exemple #1
0
    private void SetSnake()
    {
        int x;
        int y;

        (x, y)             = map.StartPositionCalculator();
        currentX           = x;
        currentY           = y;
        transform.position = new Vector2(x, y);

        snakelist.list.CreateSnake(x, y, true);
        snakelist.list.CreateSnake(x - 1, y, false);
        snakelist.list.CreateSnake(x - 2, y, false);
    }