I am new to coding and unity,I got this script from tutorials.Unity3d says
There are inconsistent line endings in the ‘Assets/MissileLauncher.js’ script. Some are Mac OS X (UNIX) and some are Windows.
This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands.
var Projectile : Rigidbody;
var speed = 20;
function Update ()
{
if( Input.GetButtonDown( "Fire1" ) )
{
var instantiatedProjectile : Rigidbody = Instantiate( projectile, transform.postion, transform.rotation )
instantiatedProjectile.velocity =transform.TransformDirection( Vector3( 0, 0, speed ) )
Physics.IgnoreCollision( instantiatedProjectile. collider,transform.root.collider )
}
}