Example #1
0
    void Start()
    {
        gameObject.transform.position += Layouts.GetBoardPos();
        Layouts.UpdateCameraZoom();

        BoardTile[,] boardTiles = SpawnBackgroundTiles();

        _LinkerLogic = new LinkerLogic(
            gameObject.transform.position,
            new SGridCoords(LevelSettings.Instance.BoardWidth, LevelSettings.Instance.BoardHeight),
            boardTiles,
            _FallSpeed
            );
        _LinkerLogic.SetSpawners(SpawnLinkerSpawners());
        _LinkerLogic.Initialize();
    }