access function in object from main script

in my gamescript, a mainscript that sets up a gameboard, and control player turns I instantiate a few objects like below:

I can’t seem to get the setAttack line to work, could someone guide a newbie in the right direction???

tempNewIsland = Instantiate(newIsland, Vector3(-4, -2, 0),transform.rotation);
tempNewIsland1 = Instantiate(newIsland, Vector3(-2, -2, 0),transform.rotation);
tempNewIsland2 = Instantiate(newIsland, Vector3(2,2, 0),transform.rotation);

tempNewIsland.setAttack(989);

the prefab of newIsland:

var attack : int;

function setAttack(nAttack:int) {
attack = nAttack;
}

tempNewIsland.SendMessage(“setAttack”, 989);