2 errors - paid solution

Hello guys, There’re 2 random errors which appears after some moves on the board, these errors appears when I select the king checker and try to press the newX and newY position, which throws 2 annoying errors(again, errors appear after some movements, because at the beginning no errors are thrown) I provided those 2 errors in the end of the script, Ill appreciate very much every help Ill get from you. http://pastebin.ca/1743121

*note : the one who solves my problem gets 5$, I know it’s nothing, but it still something.

you can check if the object is null with

if(foundChecker)
Destroy(foundChecker.gameObject);

this might get rid of the errors, but there is likely another problem with you logic since you are trying to destoy something that doesn’t exist in the first place.

i`m delcaring an arraylist now to make things better.

http://forum.unity3d.com/viewtopic.php?t=40983

My idea is found in that topic.