예제 #1
0
    public Cell Spawn()
    {
        if (cell.block != null)
        {
            return(null);
        }

        var block = factory.Generate(candidates[Random.Range(0, candidates.Length)]);

        block.Set(cell);
        return(cell);
    }