home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 108
/
jogo-disk-108.iso
/
Games
/
rush_hour.swf
/
scripts
/
__Packages
/
PlayerCar.as
< prev
next >
Wrap
Text File
|
2010-05-15
|
529b
|
28 lines
class PlayerCar extends Car1
{
var cartype = "playercar";
function PlayerCar()
{
super();
}
function onRelease()
{
super.onRelease();
if(this.ypos == 5)
{
if(this._parent.mode == "training")
{
this._parent.endOfGame();
}
else if(this._parent.mode == "competition")
{
this._parent.endOfCompetition();
}
}
}
function onReleaseOutside()
{
this.onRelease();
}
}