Esempio n. 1
0
    public void CreateTetrominoes()
    {
        for (int i = 0; i < _spawnSlots.Length; i++)
        {
            Tetromino tetromino = GetRandomTetromino();
            tetromino.transform.position = _spawnSlots[i].transform.position;
            tetromino.transform.parent   = transform;
            tetromino.CacheResetPosition();
            tetromino.ReduceScale();
            _liveTetrominoes.Add(tetromino);
        }

        OnCreateTetrominoes?.Invoke(LiveTetrominoes);
    }