예제 #1
0
    void CreateNewFigure()
    {
        int index = Random.Range(0, Figures.Length);
        FigureController figure = Instantiate(Figures[index]);

        figure.SetFigure(new Vector2(X_field, 0), gameModel.CubeColor[index]);
        fieldController.AddNewFigure(figure);
    }