will this code work on my iPhone?

will this code work on my iPhone?, if not what do i have to change so that it will?

#pragma strict
//Attach to empty object, in front of barrel
var projectile : Rigidbody;
var speed = 20;
var fireRate = .5;
var mySound : AudioClip;

function React () {
InvokeRepeating("Fire",1,fireRate);  
}
function Fire()
{
audio.PlayOneShot(mySound);
var instantiatedProjectile : Rigidbody = Instantiate(
projectile, transform.position, transform.rotation );
instantiatedProjectile.velocity =
transform.TransformDirection(transform.forward * speed);
Physics.IgnoreCollision( instantiatedProjectile. collider,
transform.root.collider );
Physics.IgnoreCollision(gameObject.FindWithTag("Whatever").transform.collider , this.collider);
 }

If it works in the editor, it will work the same way in your iPhone.