home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / bobsleddin.swf / scripts / __Packages / GameCargo.as < prev    next >
Encoding:
Text File  |  2007-09-28  |  554 b   |  23 lines

  1. class GameCargo extends GameNode
  2. {
  3.    var world;
  4.    function GameCargo()
  5.    {
  6.       super();
  7.    }
  8.    function onAddToWorld()
  9.    {
  10.       if(!_root.PostVR_Burst)
  11.       {
  12.          this.world.removeObject(this);
  13.       }
  14.       this.x = this.sector.x;
  15.       this.y = this.sector.y;
  16.       this.z = this.sector.z;
  17.    }
  18.    function onCross(sled)
  19.    {
  20.       this.world.addObject(new FlyingCargo(sled),this.sector.previous.x,this.sector.previous.y + this.sector.previous.radius - 300,this.sector.previous.z,this.sector.previous.index);
  21.    }
  22. }
  23.