Weird nullrefrence exceptions

I have a script. In fact the last script of my game, if this is finished my game is finished. By my logic the script should work, but it gives some weird nullrefrence exceptions whenever I try to access “columns[whatevernumber]”

heres my script if youre willing to look trough 105 lines of it :

400646–13757–$TileCounter.js (2.28 KB)

Your column array takes 9 items from 0-8, but your Awake function only initialises 8 of them as it says " i < 8 " in the for statement.
So… it’s probably complaining when your loop hits 8 e.g. line 96.

aah such a simple typo :S
Ty for pointing it out, couldn´t find it myself :stuck_out_tongue: