I make a minesweeper game, and to search for the borders of the playing field I just use try / catch (that is, if I get an out of bounds error, then I just know that this is the border of the map).
With normal testing in Editor mode, everything works as it should, but if I run the build in the browser I get the following error (at the moment when the try/catch block should go)
I am almost completely sure that this error occurs due to the fact that the try / catch block cannot work properly.
Any help?