Пример #1
0
    public void UnlinkTile()
    {
        GameTile removedTile = _tileStack.Pop();

        if (removedTile.GetType() != typeof(NumberTile))
        {
            PathTotal = (int)_stf.Eval(_equationGenerator.GetEquationString(this, true));
        }

        removedTile.EmptyTile(_goalTotal);

        _goalTotal.CheckComplete();

        pathUpdatedEvent.Invoke();
    }