this works well in unity on all other platforms other than iPhone…
var score_amount = 100;
var scoreCounter : GameObject;
function OnTriggerEnter (col : Collider)
{
Score();
}
function Score()
{
scoreCounter.GetComponent(score_count_script).AddScore();
}
error on this line…
scoreCounter.GetComponent(score_count_script).AddScore();
im guessing from the documentation that “AddScore” isnt working because on the iPhone it wont call functions backwards like it would in normal unity??
it works perfectly until its compiled for iPhone…