c# – Unity 2048 merge blocks game
well i made the functions of merging and the functions of checking the nearby blocks but my only problem is that each block keeps checking for nearby blocks and if it finds one it merges even if its a wrong merge ,like i made it to check the Right block and the left block “the block that checks is the middle block” but the right block code runs first and checks that there is a block on the left and it merges to it leaving the left block as it is
thats the problem
what it must have done is the left block and the right block merge to the middle one
Read more here: Source link