SFE_spaceshipScript.js 215 B

123456789101112131415
  1. //this script controls the spaceship. It is very basic and a bit hacky.
  2. #pragma strict
  3. var myTarget:GameObject;
  4. function Start () {
  5. }
  6. function Update () {
  7. transform.position.x=myTarget.transform.position.x;
  8. }