Ejemplo n.º 1
0
    void Start()
    {
        _userInterface    = FindObjectOfType <TetrisUI>();
        _userParameter    = new UserParameter(_userInterface);
        _tetrisCollection = new TetrisCollection(Figures);
        _tetrisGraphic    = new TetrisGraphic();
        _tetrisGrid       = new TetrisGrid(10, 20, _tetrisGraphic, _userParameter);
        _figureMovement   = new FigureMovement(_tetrisGrid);

        _tetrisGraphic.DrawGrid(10, 20, GridCell);

        Speed = (Speed == 0) ? 1 : Speed;
    }