Works on the mac, but not in the build on the ipad

I Instantiate a clone ond then via another scripts access the clone to transform its position. It does not work.
Also not working is trying to run a method via script. Any Idees plz.
hanks.
Scripts:var alien = 0;
var capt = 0;
var aliengreen : Transform;
var alienpink : Transform;
var alienyelow : Transform;
var alienblue : Transform;
var aliengreenc : Transform;
var alienpinkc : Transform;
var alienyelowc : Transform;
var alienbluec : Transform;
var clonet;
var posit = 0;
var ss;

function Start () {
alien = ((Random.value)*4+1);
capt = ((Random.value)*6+1);
SetUp();
}
function SetUp(){
if(capt==1){
if(alien ==1){
clonet = Instantiate(aliengreenc,transform.position, transform.rotation);

}
if(alien ==2){
clonet = Instantiate(alienpinkc,transform.position, transform.rotation);

}
if(alien ==3){
clonet = Instantiate(alienyelowc,transform.position, transform.rotation);
}
if(alien ==4){
clonet = Instantiate(alienbluec,transform.position, transform.rotation);
}
}else{
if(alien ==1){
clonet = Instantiate(aliengreen,transform.position, transform.rotation);
}
if(alien ==2){
clonet = Instantiate(alienpink,transform.position, transform.rotation);
}
if(alien ==3){
clonet= Instantiate(alienyelow,transform.position, transform.rotation);
}
if(alien ==4){
clonet = Instantiate(alienblue,transform.position, transform.rotation);
}
}
ss = clonet.GetComponent(“Position”) as Position;
ss.Posit = posit;
}

and then the script to transform the clone:
var tt;
var a1 : Transform;
var a2 : GameObject;
var tempa = 2;
var tempc = 2;
function Test () {
tt = a1.GetComponent(“StartInstant”) as StartInstant;
tt.clonet.transform.position.y = 100;
tt.alien = tempa;
tt.capt = tempc;
tt.SetUp();
this.transform.position.y =100;
}

Works fine on the computer but not at all on the ipad.
Any idees
Thanx
Gordon

what doesn’t work exactly

The respawn of the alien , and it does not transform the clonet clone.

my guess is:

var clonet; has no type

when declaring variables for iphone and ipad you need to declare the type of all variables, check if your script works under #pragma strict

Thanx gamma. There seems to be some problems.

Yes, you need to Strongly type all of your variables and functions when developing in Unity for the iOS devices as it doesn’t support dynamically assigning stuff.

Thanx gents, that was the problem. the #pragma strict realy helped