Esempio n. 1
0
    private void Build(SnapShot snapShot)
    {
        moves            = snapShot.moves;
        movesText.text   = snapShot.moves.ToString() + "/" + this.stageData.moves.ToString() + "手";
        formulaText.text = snapShot.formulaText;
        var stageData = snapShot.ToStageData(this.stageData.moves);

        Build(stageData, true, false, false, false);
        selectedPositions.Clear();
        foreach (var data in snapShot.datas)
        {
            if (data.isSelected)
            {
                selectedPositions.Add(new Vector2Int(data.position.x, data.position.y));
                grid[data.position.x][data.position.y].isSelected = true;
                grid[data.position.x][data.position.y].SetSelectedColor();
            }
        }
        formula = new Formula(snapShot.formula);
    }