Example #1
0
    public void StoreBlcokData(float currentX, float currentY)
    {
        datamanager.AddToRowsDictionary(transform.position);
        datamanager.AddToColumnsDictionary(transform.position);
        datamanager.AddToGrid(new Vector3((float)Math.Round(currentX), (float)Math.Round(currentY)));

        datamanager.AddToTopsOfBlockData(spriteRender.bounds.max);

        datamanager.AddToBoundsByColumn(transform.position.x, spriteRender.bounds);
        datamanager.AddToSolutionRowsDictionary(transform.position.y, transform.position.x, solution);
        datamanager.AddToSolutionColumnDictionary(transform.position.y, transform.position.x, solution);
    }