My sendMessage script is causing problems. Here is the code;
//Code-Line on one object
GameObject.Find("Game").SendMessage("count");
//And on the other (recieving) object called Game.
function count () {
ballsHit++;
if (ballsHit >= requiredBalls){
print ("You win");
}
I am not sure if you need to do sendmessage(“count”, null) or if you are allowed to leave null out. And it looks like you are missing a parenthesis on function count()